[Rt-commit] rtir branch, 4.0/updatehtml-initial-callback-argsref, created. 4.0.0-1-g694ca5b9
Brian Duggan
brian at bestpractical.com
Thu Apr 5 16:02:42 EDT 2018
The branch, 4.0/updatehtml-initial-callback-argsref has been created
at 694ca5b9c1926b7c2383ef3953c23b18324a960c (commit)
- Log -----------------------------------------------------------------
commit 694ca5b9c1926b7c2383ef3953c23b18324a960c
Author: Brian C. Duggan <brian at bestpractical.com>
Date: Wed Apr 4 14:25:23 2018 -0400
Pass $ARGSRef to the Initial callback in Update.html
/RTIR/Update.html's Initial callback did not pass %ARGS by
reference. That prevented a callback definition from setting some
obvious things, like UpdateSubject.
This change passes $ARGSRef to the Initial callback in Update.html.
diff --git a/html/RTIR/Update.html b/html/RTIR/Update.html
index 784f0f37..8e674956 100644
--- a/html/RTIR/Update.html
+++ b/html/RTIR/Update.html
@@ -161,7 +161,7 @@ jQuery( function() {
my $Ticket = LoadTicket($id);
$id = $ARGS{'id'} = $Ticket->Id;
-$m->callback(CallbackName => 'Initial', %ARGS, Ticket => $Ticket);
+$m->callback(CallbackName => 'Initial', ARGSRef => \%ARGS, Ticket => $Ticket);
my $title = loc("Update [_1] #[_2] ([_3])", RT::IR::TicketType( Ticket => $Ticket ), $id, $Ticket->Subject);
-----------------------------------------------------------------------
More information about the rt-commit
mailing list