diff options
| author | mark <mark> | 2012-02-19 00:35:45 +0000 |
|---|---|---|
| committer | mark <mark> | 2012-02-19 00:35:45 +0000 |
| commit | 9bb73f9a86a9d9c1d1c71d652367aaf84f7f7c37 (patch) | |
| tree | 32bcea7f24764ae5ce2225e9704095e457d3efbf /rt/lib/RT/URI/freeside.pm | |
| parent | 7ed66481b845c83c0e8d5d7c8e230fe089347443 (diff) | |
improve customer field access in RT queries, #16490
Diffstat (limited to 'rt/lib/RT/URI/freeside.pm')
| -rw-r--r-- | rt/lib/RT/URI/freeside.pm | 38 |
1 files changed, 9 insertions, 29 deletions
diff --git a/rt/lib/RT/URI/freeside.pm b/rt/lib/RT/URI/freeside.pm index 0e1834f47..64fb377fd 100644 --- a/rt/lib/RT/URI/freeside.pm +++ b/rt/lib/RT/URI/freeside.pm @@ -299,39 +299,19 @@ if ($@ && die $@; }; -=item AgentName +=item CustomerInfo -Return the name of the customer's agent. +Return a hashref of customer information, including all fields from +C<cust_main> as well as: -=cut - -sub AgentName { undef } - -=item CustomerClass - -Return the name of the customer's class. - -=cut - -sub CustomerClass { undef } - -=item CustomerTags - -Return the list of tags attached to the customer. Each tag is returned -as a hashref with keys "name", "desc", and "color". - -=cut - -sub CustomerTags { ( ) } - -=back - -=item Referral - -Return the customer's advertising source, as a string. +- 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 Referral { undef } +sub CustomerInfo { {} } 1; |
