diff options
author | Mark Wells <mark@freeside.biz> | 2014-07-08 17:02:12 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2014-07-08 17:02:12 -0700 |
commit | 94759bfdd5d12dd02c4fd850667d936b77cd7d81 (patch) | |
tree | 96641fe964e0df2aa59b5b82a57333e1dd5010b3 /FS/FS/svc_Radius_Mixin.pm | |
parent | 92a1c8645232c0d4df0552f883d21aea185c122a (diff) |
fix delete order to avoid foreign key trouble, #13971
Diffstat (limited to 'FS/FS/svc_Radius_Mixin.pm')
-rw-r--r-- | FS/FS/svc_Radius_Mixin.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/FS/FS/svc_Radius_Mixin.pm b/FS/FS/svc_Radius_Mixin.pm index 969f749..8e53a15 100644 --- a/FS/FS/svc_Radius_Mixin.pm +++ b/FS/FS/svc_Radius_Mixin.pm @@ -99,12 +99,12 @@ sub delete { local $FS::UID::AutoCommit = 0; my $dbh = dbh; - my $error = $self->SUPER::delete(@_) - || $self->process_m2m( + my $error = $self->process_m2m( 'link_table' => 'radius_usergroup', 'target_table' => 'radius_group', 'params' => [], - ); + ) + || $self->SUPER::delete; if ( $error ) { $dbh->rollback if $oldAutoCommit; |