diff options
author | mark <mark> | 2011-12-28 23:55:32 +0000 |
---|---|---|
committer | mark <mark> | 2011-12-28 23:55:32 +0000 |
commit | 0978ea95c15ee2af833b20b5985d3b57e194966d (patch) | |
tree | eabe39074d93c8fe3167ae21dd2768d231a8bb65 /FS/FS/nas.pm | |
parent | 40f436877b2334fc2d4fd34c50d54807ae8777af (diff) |
broadband_nas export, #15284
Diffstat (limited to 'FS/FS/nas.pm')
-rw-r--r-- | FS/FS/nas.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/FS/FS/nas.pm b/FS/FS/nas.pm index af5a23a24..c7f245912 100644 --- a/FS/FS/nas.pm +++ b/FS/FS/nas.pm @@ -50,6 +50,7 @@ FS::Record. The following fields are currently supported: =item description - a longer descriptive name +=item svcnum - the L<FS::svc_broadband> record that 'owns' this device =back @@ -94,7 +95,7 @@ sub delete { ) || $self->SUPER::delete; if ( $error ) { - $dbh->rollback; + $dbh->rollback if $oldAutoCommit; return $error; } @@ -159,6 +160,7 @@ sub check { || $self->ut_textn('server') || $self->ut_textn('community') || $self->ut_text('description') + || $self->ut_foreign_keyn('svcnum', 'svc_broadband', 'svcnum') ; return $error if $error; |