[freeside-commits] freeside/FS/FS cust_pkg.pm,1.215,1.216
Ivan,,,
ivan at wavetail.420.am
Tue Oct 18 12:25:41 PDT 2011
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv26265
Modified Files:
cust_pkg.pm
Log Message:
set the suspension date before calling service suspensions, fix RADIUS groups suspension, RT#14398
Index: cust_pkg.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_pkg.pm,v
retrieving revision 1.215
retrieving revision 1.216
diff -u -w -d -r1.215 -r1.216
--- cust_pkg.pm 9 Sep 2011 21:33:31 -0000 1.215
+++ cust_pkg.pm 18 Oct 2011 19:25:39 -0000 1.216
@@ -1000,6 +1000,19 @@
}
}
+ my %hash = $self->hash;
+ if ( $date ) {
+ $hash{'adjourn'} = $date;
+ } else {
+ $hash{'susp'} = $suspend_time;
+ }
+ my $new = new FS::cust_pkg ( \%hash );
+ $error = $new->replace( $self, options => { $self->options } );
+ if ( $error ) {
+ $dbh->rollback if $oldAutoCommit;
+ return $error;
+ }
+
unless ( $date ) {
my @labels = ();
@@ -1055,19 +1068,6 @@
}
- my %hash = $self->hash;
- if ( $date ) {
- $hash{'adjourn'} = $date;
- } else {
- $hash{'susp'} = $suspend_time;
- }
- my $new = new FS::cust_pkg ( \%hash );
- $error = $new->replace( $self, options => { $self->options } );
- if ( $error ) {
- $dbh->rollback if $oldAutoCommit;
- return $error;
- }
-
$dbh->commit or die $dbh->errstr if $oldAutoCommit;
''; #no errors
More information about the freeside-commits
mailing list