search tickets by customer advertising source, #16490
[freeside.git] / rt / lib / RT / Tickets_Overlay.pm
index f6df553..76a57b8 100644 (file)
@@ -148,6 +148,7 @@ our %FIELD_METADATA = (
     #freeside
     Agentnum         => [ 'FREESIDEFIELD', ],
     Classnum         => [ 'FREESIDEFIELD', ],
+    Refnum           => [ 'FREESIDEFIELD', ],
     Tagnum           => [ 'FREESIDEFIELD', 'cust_tag' ],
     WillResolve      => [ 'DATE'            => 'WillResolve', ], #loc_left_pair
 );
@@ -1824,6 +1825,9 @@ sub OrderByCols {
                elsif ( $subkey eq 'Agent' ) {
                    $field = "$custalias.agentnum";
                }
+               elsif ( $subkey eq 'Referral' ) {
+                   $field = "$custalias.refnum";
+               }
                else {
                    # no other cases exist yet, but for obviousness:
                    $field = $subkey;