[freeside-commits] freeside/FS/FS cust_pkg.pm,1.122,1.123
Ivan,,,
ivan at wavetail.420.am
Sun Mar 29 21:50:15 PDT 2009
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv20848/FS/FS
Modified Files:
cust_pkg.pm
Log Message:
and hopefully actually using the count will finally do it, RT#5083
Index: cust_pkg.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_pkg.pm,v
retrieving revision 1.122
retrieving revision 1.123
diff -u -d -r1.122 -r1.123
--- cust_pkg.pm 30 Mar 2009 04:15:56 -0000 1.122
+++ cust_pkg.pm 30 Mar 2009 04:50:13 -0000 1.123
@@ -1415,13 +1415,15 @@
sub cust_svc {
my $self = shift;
- cluck "cust_pkg->cust_svc called" if $DEBUG > 1;
-
if ( @_ ) {
return qsearch( 'cust_svc', { 'pkgnum' => $self->pkgnum,
'svcpart' => shift, } );
}
+ return () unless $self->num_cust_svc;
+
+ cluck "cust_pkg->cust_svc called" if $DEBUG > 1;
+
#if ( $self->{'_svcnum'} ) {
# values %{ $self->{'_svcnum'}->cache };
#} else {
More information about the freeside-commits
mailing list