summaryrefslogtreecommitdiff
path: root/FS/FS/nas.pm
diff options
context:
space:
mode:
Diffstat (limited to 'FS/FS/nas.pm')
-rw-r--r--FS/FS/nas.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/FS/FS/nas.pm b/FS/FS/nas.pm
index 4564a63..af5a23a 100644
--- a/FS/FS/nas.pm
+++ b/FS/FS/nas.pm
@@ -87,8 +87,11 @@ sub delete {
my $dbh = dbh;
my $self = shift;
- my $error = $self->process_m2m([])
- || $self->SUPER::delete;
+ my $error = $self->process_m2m(
+ link_table => 'export_nas',
+ target_table => 'part_export',
+ params => []
+ ) || $self->SUPER::delete;
if ( $error ) {
$dbh->rollback;