[rt-users] Send email reminder fails with undefined value
Emmanuel Lacour
elacour at easter-eggs.com
Wed Oct 15 08:37:18 EDT 2014
Le 15/10/2014 14:20, fleon a écrit :
> I found the thread on the list
> http://requesttracker.8502.n7.nabble.com/Suppressing-RT-System-itself-entries-in-Ticket-History-td52865.html
> that explains that a method to suppress these kind of elements in the ticket
> history is to code a callback where you can skip some transactions.
>
> What would be the name of the transaction i need to skip? I only want to
> suppress outgoing emails done by the root user itself (i have another super
> user - myself, and i don't want to skip from that)
>
>
here is a part of what I use here. I Hide most day to day useless
transaction in ticket display page, thought I allow to see all when
clicking on History link. You should find what you wan't in this sample
code :)
local/html/Callbacks/YourOrg/Elements/ShowHistory/SkipTransaction:
<%init>
# Hide systems transaction (except comments/corresponds) in history by
default
$$skip = 1 if ( ( $r->uri && $r->uri !~ /History.html/ )
&& ( ( $Transaction->Type && $Transaction->Type =~
m/^(EmailRecord|CommentEmailRecord|CustomField)$/ )
|| ( $Transaction->Field && $Transaction->Field =~
m/^(Owner|Status|Queue|EeCustomer)$/ )
) );
</%init>
<%args>
$Transaction => undef
$skip => undef
</%args>
--
Easter-eggs Spécialiste GNU/Linux
44-46 rue de l'Ouest - 75014 Paris - France - Métro Gaité
Phone: +33 (0) 1 43 35 00 37 - Fax: +33 (0) 1 43 35 00 76
mailto:elacour at easter-eggs.com - http://www.easter-eggs.com
More information about the rt-users
mailing list