[freeside-commits] freeside/rt/lib/RT/URI/freeside Internal.pm, 1.10, 1.11
Mark Wells
mark at wavetail.420.am
Thu Feb 16 18:35:29 PST 2012
Update of /home/cvs/cvsroot/freeside/rt/lib/RT/URI/freeside
In directory wavetail.420.am:/tmp/cvs-serv9116/rt/lib/RT/URI/freeside
Modified Files:
Internal.pm
Log Message:
search tickets by customer advertising source, #16490
Index: Internal.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/rt/lib/RT/URI/freeside/Internal.pm,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -w -d -r1.10 -r1.11
--- Internal.pm 8 Sep 2011 00:22:37 -0000 1.10
+++ Internal.pm 17 Feb 2012 02:35:27 -0000 1.11
@@ -53,7 +53,7 @@
-sub _FreesideGetRecord {
+sub _FreesideGetRecord { # cache this?
my $self = shift;
my ($table, $pkey) = ($self->{'fstable'}, $self->{'fspkey'});
@@ -167,4 +167,11 @@
} @part_tag;
}
+sub Referral {
+ my $self = shift;
+ my $rec = $self->_FreesideGetRecord() or return;
+ my $ref = qsearchs('part_referral', { refnum => $rec->{'_object'}->refnum });
+ $ref ? $ref->referral : ''
+}
+
1;
More information about the freeside-commits
mailing list