[freeside-commits] freeside/rt/lib/RT/URI/freeside Internal.pm, 1.8.2.2, 1.8.2.3
Mark Wells
mark at wavetail.420.am
Thu Feb 16 18:35:41 PST 2012
Update of /home/cvs/cvsroot/freeside/rt/lib/RT/URI/freeside
In directory wavetail.420.am:/tmp/cvs-serv9259/rt/lib/RT/URI/freeside
Modified Files:
Tag: FREESIDE_2_3_BRANCH
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.8.2.2
retrieving revision 1.8.2.3
diff -u -w -d -r1.8.2.2 -r1.8.2.3
--- Internal.pm 8 Sep 2011 00:22:57 -0000 1.8.2.2
+++ Internal.pm 17 Feb 2012 02:35:39 -0000 1.8.2.3
@@ -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