[freeside-commits] freeside/FS/FS cust_main.pm, 1.464.2.32, 1.464.2.33
Ivan,,,
ivan at wavetail.420.am
Fri Jul 2 18:25:31 PDT 2010
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv15832
Modified Files:
Tag: FREESIDE_1_9_BRANCH
cust_main.pm
Log Message:
should fix cancellations in rare circumstances where cached _num_cust_svc becomes inaccurate, RT#8994
Index: cust_main.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_main.pm,v
retrieving revision 1.464.2.32
retrieving revision 1.464.2.33
diff -u -w -d -r1.464.2.32 -r1.464.2.33
--- cust_main.pm 2 Jul 2010 00:25:46 -0000 1.464.2.32
+++ cust_main.pm 3 Jul 2010 01:25:29 -0000 1.464.2.33
@@ -2104,6 +2104,9 @@
return 1 if !$a_num_cust_svc && $b_num_cust_svc;
my @a_cust_svc = $a->cust_svc;
my @b_cust_svc = $b->cust_svc;
+ return 0 if !scalar(@a_cust_svc) && !scalar(@b_cust_svc)
+ return -1 if scalar(@a_cust_svc) && !scalar(@b_cust_svc);
+ return 1 if !scalar(@a_cust_svc) && scalar(@b_cust_svc);
$a_cust_svc[0]->svc_x->label cmp $b_cust_svc[0]->svc_x->label;
}
More information about the freeside-commits
mailing list