projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fce19ee
)
fix bug with RADIUS groups not available to shellcommands delete export
author
ivan
<ivan>
Wed, 28 Mar 2007 03:59:07 +0000
(
03:59
+0000)
committer
ivan
<ivan>
Wed, 28 Mar 2007 03:59:07 +0000
(
03:59
+0000)
FS/FS/svc_acct.pm
patch
|
blob
|
history
diff --git
a/FS/FS/svc_acct.pm
b/FS/FS/svc_acct.pm
index
3a625f7
..
aec1f0c
100644
(file)
--- 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 } )
) {
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;
'';
}
$dbh->commit or die $dbh->errstr if $oldAutoCommit;
'';
}