summaryrefslogtreecommitdiff
path: root/FS/FS/part_export.pm
diff options
context:
space:
mode:
authormark <mark>2011-11-10 21:40:05 +0000
committermark <mark>2011-11-10 21:40:05 +0000
commit307a7d85568a15f5eb0d97c648507484108fcc56 (patch)
tree22e4da31ad00e299cea5dbf983234f839f17225b /FS/FS/part_export.pm
parentcfbfa38f73888ee2c073ad7500c1fe147cde1c81 (diff)
RADIUS groups for svc_broadband, #14695
Diffstat (limited to 'FS/FS/part_export.pm')
-rw-r--r--FS/FS/part_export.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/FS/FS/part_export.pm b/FS/FS/part_export.pm
index f84f2a0..4b60953 100644
--- a/FS/FS/part_export.pm
+++ b/FS/FS/part_export.pm
@@ -128,7 +128,12 @@ sub delete {
local $FS::UID::AutoCommit = 0;
my $dbh = dbh;
- my $error = $self->SUPER::delete;
+ # clean up export_nas records
+ my $error = $self->process_m2m(
+ 'link_table' => 'export_nas',
+ 'target_table' => 'nas',
+ 'params' => [],
+ ) || $self->SUPER::delete;
if ( $error ) {
$dbh->rollback if $oldAutoCommit;
return $error;