[rt-users] Problem with \@Actions array and custom callback

Mikko Lehto mslehto at iki.fi
Sun Mar 25 19:07:19 EDT 2012


Hello everybody.

I am not able to see messages in web UI that are pushed from my callback.
I am running RT 4.0.1 from Ubuntu 11.10 package.

Below is minimal callback routine which demonstrates the problem
(/usr/local/share/request-tracker4/html/Callbacks/Test/Ticket/Display.html/ProcessArguments):
---
% foreach my $action (@Actions) {
% $RT::Logger->info("ProcessArguments foreach: $action");
% }

<%INIT>
$RT::Logger->info("ProcessArguments INIT");
my $msg="result OK";
push(@Actions, $msg);
</%INIT>

<%ARGS>
  $Ticket => undef
  %ARGSRef => undef
  @Actions => undef
</%ARGS>
---

With the above callback I get nothing in web UI notification area, allthough
syslog shows callback has been visited:
---
[Sun Mar 25 21:45:56 2012] [info]: ProcessArguments INIT
(/usr/local/share/request-tracker4/html/Callbacks/Test/Ticket/Display.html/ProcessArguments:6)
[Sun Mar 25 21:45:56 2012] [info]: ProcessArguments foreach: result OK
(/usr/local/share/request-tracker4/html/Callbacks/Test/Ticket/Display.html/ProcessArguments:2)
---

Standard RT notifications work as expected (add reminder or update
'Told' in Display.html).
I checked list archives and masonbook.com¹ but can not find
anything anymore to help troubleshoot forward.

Any pointers what I might be doing wrong?

[1] 
http://www.masonbook.com/book/chapter-2.mhtml#TOC-ANCHOR-14

-- 
Mikko Lehto



More information about the rt-users mailing list