summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorivan <ivan>2007-03-28 03:59:07 +0000
committerivan <ivan>2007-03-28 03:59:07 +0000
commitb4060ee8879f433c3cdd4a2b6bef55f136863a5f (patch)
treef9703af43cfcb8f58f6299e7f5f121b7c7af5abf /FS
parentfce19eeca97b74dbc3706da931d6cdf4bf7f0337 (diff)
fix bug with RADIUS groups not available to shellcommands delete export
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/svc_acct.pm12
1 files changed, 6 insertions, 6 deletions
diff --git a/FS/FS/svc_acct.pm b/FS/FS/svc_acct.pm
index 3a625f791..aec1f0c1d 100644
--- a/FS/FS/svc_acct.pm
+++ b/FS/FS/svc_acct.pm
@@ -608,6 +608,12 @@ sub delete {
}
}
+ my $error = $self->SUPER::delete;
+ if ( $error ) {
+ $dbh->rollback if $oldAutoCommit;
+ return $error;
+ }
+
foreach my $radius_usergroup (
qsearch('radius_usergroup', { 'svcnum' => $self->svcnum } )
) {
@@ -618,12 +624,6 @@ sub delete {
}
}
- my $error = $self->SUPER::delete;
- if ( $error ) {
- $dbh->rollback if $oldAutoCommit;
- return $error;
- }
-
$dbh->commit or die $dbh->errstr if $oldAutoCommit;
'';
}