[rt-users] Callback Ticket/ShowHistory/SkipTransaction gives'return 1; '

Barry L. Kline blkline at attglobal.net
Thu Oct 12 12:06:51 EDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Stephen Turner wrote:
> Barry,
> 
> If this isn't a production system, there's a config setting
> (RT_SiteConfig.pm) that should allow mason component changes to be effective
> instantly, without web server restart or cache clearing:
> 
> Set($DevelMode => '1');
> 
> Makes development a little less tiresome. It apparently slows things down a
> little so you want to make sure this is turned off in your production
> systems.
> 

That was the problem Steve.  Thanks very much!  My final code is this:


<%INIT>

# Set $skip to 1 if transaction matches criteria
# $skip is passed by reference

# get out of here asap
unless ( $Transaction->Field eq 'Priority' && $Transaction->Type eq 'Set') {
    return $$skip = 0;
}

$$skip = 1;

</%INIT>

<%ARGS>
$skip => undef
$Transaction => undef
</%ARGS>


and now I don't have to look at any more "Set Priority" messages, which
is just what I wanted.

I really appreciate your help.

Barry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFFLmgaCFu3bIiwtTARAr08AJ98VDAjAhnoy7WSn+1VY3EpI0+wVgCglE6O
znimQ/+nSRiNz38cCgMKsuk=
=PEmy
-----END PGP SIGNATURE-----



More information about the rt-users mailing list