Re: Default Callbacks in share/html/Ticket/ModifyAll.html and share/html/Ticket/Modify.html

Alex Vandiver <[email protected]>
Newsgroups gmane.comp.bug-tracking.request-tracker.devel
Organization Best Practical Solutions, LLC
Message-ID <[email protected]>
On Mon, 2014-04-07 at 23:23 +0400, Орлянский Владимир wrote:
> In share/html/Ticket/Modify.html there is such description of Default
> callback:
> 
> $m->callback( TicketObj => $TicketObj, CustomFields => $CustomFields,
> ARGSRef => \%ARGS, skip_update => \$skip_update, results => \@results
> );
> 
> As result it is possible to add user messages to @results list
> 
> But in share/html/Ticket/ModifyAll.html there is such description of
> Default Callback
> 
> $m->callback( TicketObj => $Ticket, ARGSRef => \%ARGS, skip_update =>
> \$skip_update ); 
> 
> As result is it impossible to add users messages to result list.
> 
> Is it issue or I can not understand something?

I've just pushed a change for 4.2.4 that adds @results to that callback.
Until then, you can fake it by also using the BeforeActionList callback,
and (if necessary) passing information around between the two callbacks
using $m->notes or $ARGSRef.
 - Alex


-- 
RT Training - Dallas May 20-21
http://bestpractical.com/training
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.