[freeside-commits] freeside/FS/FS access_user.pm,1.8,1.9
Ivan,,,
ivan at wavetail.420.am
Mon Aug 14 01:38:11 PDT 2006
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail:/tmp/cvs-serv16771
Modified Files:
access_user.pm
Log Message:
bugfix for agentless access users, triggered by part_referral (advertising source) agent virtualization
Index: access_user.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/access_user.pm,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- access_user.pm 11 Aug 2006 08:02:26 -0000 1.8
+++ access_user.pm 14 Aug 2006 08:38:08 -0000 1.9
@@ -297,8 +297,12 @@
sub agentnums_sql {
my $self = shift;
+
+ my @agentnums = $self->agentnums;
+ return ' 1 = 0 ' unless scalar(@agentnums);
+
'( '.
- join( ' OR ', map "agentnum = $_", $self->agentnums ).
+ join( ' OR ', map "agentnum = $_", @agentnums ).
' )';
}
More information about the freeside-commits
mailing list