[Rt-commit] [rtir] 05/09: Pass ticket object to EditCustomFields
Kevin Falcone
falcone at bestpractical.com
Fri Mar 28 17:44:31 EDT 2014
This is an automated email from the git hooks/post-receive script.
falcone pushed a commit to branch master
in repository rtir.
commit 819f1f4dc2e1cd852fc7cd19cfce5d9771e21060
Author: Jim Brandt <jbrandt at bestpractical.com>
Date: Fri Mar 7 14:02:57 2014 -0500
Pass ticket object to EditCustomFields
EditCustomFields requires an object, so create an empty
ticket object to pass.
---
html/RTIR/Create.html | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/html/RTIR/Create.html b/html/RTIR/Create.html
index 67ca31d..f3f6019 100644
--- a/html/RTIR/Create.html
+++ b/html/RTIR/Create.html
@@ -148,7 +148,7 @@
<& /RTIR/Elements/EditCustomFields,
%ARGS,
- TicketOnj => undef,
+ TicketObj => $ticket,
QueueObj => $QueueObj,
DefaultsFrom => $SplitObj || $IncidentObj[0],
&>
@@ -333,6 +333,7 @@ $m->callback(
my $QueueObj = RT::Queue->new( $session{'CurrentUser'} );
$QueueObj->Load( $Queue ) || Abort( loc("Queue could not be loaded.") );
+my $ticket = RT::Ticket->new($session{'CurrentUser'}); # empty ticket object
my $Type = RT::IR::TicketType( Queue => $Queue );
if ($Type eq 'Block' && RT->Config->Get('RTIR_DisableBlocksQueue') ) {
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the rt-commit
mailing list