[Rt-commit] [rtir] 05/08: Pass ticket object to EditCustomFields

Jim Brandt jbrandt at bestpractical.com
Fri Mar 7 15:04:14 EST 2014


This is an automated email from the git hooks/post-receive script.

jbrandt pushed a commit to branch 3.2/get-create-working
in repository rtir.

commit b9092e42fdb9c71246c460fe39085d11fe8befa1
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 2268c17..b4a93ce 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