freeside/FS/FS part_pkg.pm,1.37,1.38
ivan
ivan at pouncequick.420.am
Tue Apr 19 02:48:43 PDT 2005
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory pouncequick:/tmp/cvs-serv17509
Modified Files:
part_pkg.pm
Log Message:
silence an annoying but harmless perl warning
Index: part_pkg.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_pkg.pm,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- part_pkg.pm 18 Mar 2005 19:15:26 -0000 1.37
+++ part_pkg.pm 19 Apr 2005 09:48:38 -0000 1.38
@@ -230,7 +230,10 @@
my $pkg_svc = $options{'pkg_svc'} || {};
foreach my $part_svc ( qsearch('part_svc', {} ) ) {
my $quantity = $pkg_svc->{$part_svc->svcpart} || 0;
- my $primary_svc = $options{'primary_svc'} == $part_svc->svcpart ? 'Y' : '';
+ my $primary_svc =
+ ( $options{'primary_svc'} && $options{'primary_svc'}==$part_svc->svcpart )
+ ? 'Y'
+ : '';
my $pkg_svc = new FS::pkg_svc( {
'pkgpart' => $self->pkgpart,
More information about the freeside-commits
mailing list