[freeside-commits] freeside/rt/lib/RT/URI freeside.pm,1.12,1.13

Mark Wells mark at wavetail.420.am
Sat Feb 18 16:34:24 PST 2012


Update of /home/cvs/cvsroot/freeside/rt/lib/RT/URI
In directory wavetail.420.am:/tmp/cvs-serv30419/rt/lib/RT/URI

Modified Files:
	freeside.pm 
Log Message:
improve customer field access in RT queries, #16490

Index: freeside.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/rt/lib/RT/URI/freeside.pm,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -w -d -r1.12 -r1.13
--- freeside.pm	17 Feb 2012 02:35:27 -0000	1.12
+++ freeside.pm	19 Feb 2012 00:34:21 -0000	1.13
@@ -299,39 +299,19 @@
   die $@;
 };
 
-=item AgentName
-
-Return the name of the customer's agent.
-
-=cut
-
-sub AgentName { undef }
-
-=item CustomerClass
-
-Return the name of the customer's class.
-
-=cut
-
-sub CustomerClass { undef }
+=item CustomerInfo
 
-=item CustomerTags
+Return a hashref of customer information, including all fields from 
+C<cust_main> as well as:
 
-Return the list of tags attached to the customer.  Each tag is returned
+- AgentName: the name of the customer's agent
+- CustomerClass: the name of the customer's class
+- CustomerTags: an arrayref of tags attached to the customer, each
 as a hashref with keys "name", "desc", and "color".
+- Referral: the name of the customer's advertising source.
 
 =cut
 
-sub CustomerTags { ( ) }
-
-=back
-
-=item Referral
-
-Return the customer's advertising source, as a string.
-
-=cut
-
-sub Referral { undef }
+sub CustomerInfo { {} }
 
 1;



More information about the freeside-commits mailing list