[rt-users] help with ModifyQuery callback

Izz Abdullah Izz.Abdullah at hibbett.com
Thu Oct 13 11:12:45 EDT 2011

That's another thing.  Your logger looks different from what I have seen.

What I have seen:

Yours doesn't have a semicolon and is called differently, or is it essentially called the same?

-----Original Message-----
From: rt-users-bounces at lists.bestpractical.com [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Kevin Falcone
Sent: Thursday, October 13, 2011 10:03 AM
To: rt-users at lists.bestpractical.com
Subject: Re: [rt-users] help with ModifyQuery callback

On Thu, Oct 13, 2011 at 09:48:59AM -0500, Izz Abdullah wrote:
> Well it doesn't work for me in this callback.  

If my trivial example does not work for you, then something is fundamentally broken with your RT install.

Stop trying to make your changes to the query until you can get my example to run.


> A trivial Logger call in that callback works fine:
> transom:rt4.0.2 root# mkdir -p 
> local/html/Callbacks/Hi/Search/Simple.html/
> transom:rt4.0.2 root# vim 
> local/html/Callbacks/Hi/Search/Simple.html/ModifyQuery
> transom:rt4.0.2 root# cat 
> local/html/Callbacks/Hi/Search/Simple.html/ModifyQuery
> % RT->Logger->error("Hi")
> transom:rt4.0.2 root# ./sbin/standalone_httpd
> HTTP::Server::PSGI: Accepting connections at http://0:8992/ [Thu Oct 
> 13 14:24:19 2011] [info]: Successful login for root from 
> (/opt/rt4.0.2/sbin/../lib/RT/Interface/Web.pm:660)
> [Thu Oct 13 14:24:19 2011] [error]: Hi 
> (/opt/rt4.0.2/local/html/Callbacks/Hi/Search/Simple.html/ModifyQuery:1
> )

More information about the rt-users mailing list