[Rt-commit] [rtir] 08/11: EditCustomFields now requires a ticket 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 d4a1dbfc47e18a5a505df77b5f23143ce57dc990
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Mon Mar 10 09:05:25 2014 -0400

    EditCustomFields now requires a ticket object
---
 html/RTIR/Investigation/Elements/Create | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/html/RTIR/Investigation/Elements/Create b/html/RTIR/Investigation/Elements/Create
index dc37a64..d5cabf4 100644
--- a/html/RTIR/Investigation/Elements/Create
+++ b/html/RTIR/Investigation/Elements/Create
@@ -96,7 +96,7 @@
 % if ( ($QueueObj || $TicketObj) && !$SkipField{'CustomFields'} ) {
 <& /RTIR/Elements/EditCustomFields,
     %ARGS,
-    TicketObj  => undef,
+    TicketObj  => $ticket,
     NamePrefix => $NamePrefix,
     QueueObj   => $QueueObj,
     DefaultsFrom => $TicketObj,
@@ -212,6 +212,8 @@ unless ( $QueueObj ) {
     }
 }
 
+my $ticket = RT::Ticket->new($session{'CurrentUser'}); # empty ticket object
+
 if ( RT->Config->Get('GnuPG')->{'Enable'} ) {
     foreach ( qw(Sign Encrypt) ) {
         $ARGS{ $NamePrefix . $_ } = $m->comp( '/Widgets/Form/Boolean:Process',

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the rt-commit mailing list