[rt-users] Adding an Action link to Ticket/Display.html/BeforeActionList

David Schmidt david.schmidt at univie.ac.at
Thu Oct 6 07:53:19 EDT 2016


When/Where are the actions added to @Actions?

1) for some reason the \@Actions ArrayRef is empty when I access it in 
the callback. Where do the Actions come from? I am talking about the 
links "Reply", "Comment", "Forward", "Stall", ...

2) If I push a simple string to \@Actions they end up in a yellow 
"Results" Widget. see attached screenshot


#local/plugins/RT-Extension-OneClickClose/html/Callbacks/RT-Extension-OneClickClose/Ticket/Display.html/BeforeActionList
<%init>
use Data::Dumper;
$RT::Logger->debug("\n\n###\n".Dumper($Actions)."\n\n###\n");
push @$Actions, "foo";
</%init>

<%args>
$Actions     => undef
$TicketObj   => undef
</%args>


Output:
###
$VAR1 = [];


### 
(/opt/rt4/local/plugins/RT-Extension-OneClickClose/html/Callbacks/RT-Extension-OneClickClose/Ticket/Display.html/BeforeActionList:3)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Actions.png
Type: image/png
Size: 19801 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20161006/65026c26/attachment.png>


More information about the rt-users mailing list