[Rt-commit] [rtir] 04/11: EditCustomFields needs an object
Jim Brandt
jbrandt at bestpractical.com
Thu Mar 20 16:35:45 EDT 2014
This is an automated email from the git hooks/post-receive script.
jbrandt pushed a commit to branch 3.2/incident-investigation-updates
in repository rtir.
commit 2fd075617dc375c7dba6f6b68a8e820ac75bbe62
Author: Jim Brandt <jbrandt at bestpractical.com>
Date: Fri Mar 7 16:10:15 2014 -0500
EditCustomFields needs an object
---
html/RTIR/Incident/Create.html | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/html/RTIR/Incident/Create.html b/html/RTIR/Incident/Create.html
index 213881d..da51898 100644
--- a/html/RTIR/Incident/Create.html
+++ b/html/RTIR/Incident/Create.html
@@ -154,7 +154,7 @@ if ( $ChildObj && !$ChildObj->CurrentUserHasRight('ModifyTicket') ) {
<& /RTIR/Elements/EditCustomFields,
%ARGS,
- TicketObj => undef,
+ TicketObj => $ticket,
QueueObj => $QueueObj,
DefaultsFrom => $SplitObj || $ChildObj,
&>
@@ -308,6 +308,8 @@ $m->callback(
my $QueueObj = RT::Queue->new( $session{'CurrentUser'} );
$QueueObj->Load( 'Incidents' ) || Abort( loc("Queue could not be loaded.") );
+my $ticket = RT::Ticket->new($session{'CurrentUser'}); # empty ticket object
+
$m->comp( '/RTIR/Create.html:ProcessAttachments', %ARGS );
my $checks_failure = 0;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the rt-commit
mailing list