[rt-users] help with ModifyQuery callback

Kevin Falcone falcone at bestpractical.com
Thu Oct 13 10:25:05 EDT 2011

On Thu, Oct 13, 2011 at 08:40:51AM -0500, Izz Abdullah wrote:
> and you didn't have anything to say in this user's request on why it doesn't do anything either:
> http://www.gossamer-threads.com/lists/rt/users/98262

I can't answer every question on the mailing list.
That question is also from a year ago and a different version of RT.

> which also touches on the $RT::Logger not working in his callback, if I could get that to work, I wouldn't be bothering everyone here.

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)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20111013/8ef98190/attachment.sig>

More information about the rt-users mailing list