[rt-users] help with ModifyQuery callback

Izz Abdullah Izz.Abdullah at hibbett.com
Thu Oct 13 10:48:59 EDT 2011


Well it doesn't work for me in this callback.  And you did put your 2 cents worth in at the end of that particular thread.  Yes, it was over a year ago, but there isn't much literature, except for help from colleagues here, on the ModifyQuery syntax.  Which I am not really getting a lot of help...just 'why did you do this'.  I have tried multiple ways.  And am still working on multiple ways, and emailing the list in the midst of trying different approaches.

I have even tried the noted:
$$query = $$query . " new open resolved stalled rejected deleted";
(which seemed to work for other users)

Direction is appreciated.

-----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 9:25 AM
To: rt-users at lists.bestpractical.com
Subject: Re: [rt-users] help with ModifyQuery callback

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 127.0.0.1 (/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)

-kevin



More information about the rt-users mailing list