[freeside-users] Patch - fix spurious customer links displayed on RT tickets

Ivan Kohler ivan at freeside.biz
Thu Sep 9 23:24:18 PDT 2010


applied, will be in 2.1.1, thanks!

-- 
_ivan


On Thu, Sep 09, 2010 at 08:52:22PM -0400, Erik L wrote:
> Attached patch to fix spurious customer links displayed on RT tickets, against 2.1.0. This is the bug I mentioned previously on the mailing list and IRC today.
> 
> Erik

> diff -Nrpuw /tmp/freeside-2.1.0/rt/lib/RT/Ticket_Overlay.pm ./RT/Ticket_Overlay.pm
> --- /tmp/freeside-2.1.0/rt/lib/RT/Ticket_Overlay.pm	2010-05-18 15:20:28.000000000 -0400
> +++ ./RT/Ticket_Overlay.pm	2010-09-09 19:53:50.000000000 -0400
> @@ -2305,6 +2305,15 @@ sub _Links {
>          return $links;
>      }
>  
> +    # without this you will also get RT::User(s) instead of tickets!
> +    if($field == 'Base' and $type == 'MemberOf'){ 
> +	$links->Limit(
> +		       FIELD    => 'Base',
> +		       OPERATOR => 'STARTSWITH',
> +		       VALUE    => 'fsck.com-rt://'.RT->Config->Get('rtname').'/ticket/',
> +		    );
> +    }
> +
>      # Maybe this ticket is a merge ticket
>      my $limit_on = 'Local'. $field;
>      # at least to myself
> 

> _______________________________________________
> freeside-users mailing list
> freeside-users at freeside.biz
> http://420.am/cgi-bin/mailman/listinfo/freeside-users




More information about the freeside-users mailing list