[Rt-commit] rtir branch 5.0/show-assets created. 5.0.4-7-g3f1c0e7a

BPS Git Server git at git.bestpractical.com
Tue Nov 28 21:49:34 UTC 2023


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rtir".

The branch, 5.0/show-assets has been created
        at  3f1c0e7a84bb8ebac911ec016bfaacb5366cbd2e (commit)

- Log -----------------------------------------------------------------
commit 3f1c0e7a84bb8ebac911ec016bfaacb5366cbd2e
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Tue Nov 28 16:39:45 2023 -0500

    Support to show assets on create/display

diff --git a/html/RTIR/Create.html b/html/RTIR/Create.html
index 241e5779..83ea6220 100644
--- a/html/RTIR/Create.html
+++ b/html/RTIR/Create.html
@@ -64,6 +64,7 @@
 <form action="<%RT::IR->HREFTo("Split.html") %>" method="post" enctype="multipart/form-data" name="TicketCreate">
 % }
 <input type="hidden" name="id" value="new" />
+<input type="hidden" class="hidden" name="new-RefersTo" value="<% $ARGS{'new-RefersTo'} %>" />
 <input type="hidden" class="hidden" name="Token" value="<% $ARGS{'Token'} %>" />
 <input type="hidden" name="QueueChanged" value="0" />
 % if ( $Split ) {
@@ -165,6 +166,8 @@
   &>
 </&>
 
+<& /Ticket/Elements/ShowAssetsOnCreate, QueueObj => $QueueObj, ARGSRef => \%ARGS &>
+
 <& /Elements/EditCustomFieldCustomGroupings,
     %ARGS,
     %CFDefaults,
diff --git a/html/RTIR/Display.html b/html/RTIR/Display.html
index 98351634..930e2f4d 100644
--- a/html/RTIR/Display.html
+++ b/html/RTIR/Display.html
@@ -303,6 +303,9 @@
     </form>
 % }
     </&>
+
+<& /Ticket/Elements/ShowAssets, Ticket => $Ticket &>
+
 % $m->callback( %ARGS, Ticket => $Ticket, CallbackName => 'BeforeRequestor' );
     <br />  
       <& /Ticket/Elements/ShowRequestor, Ticket => $Ticket, DisplayPath => RT::IR->HREFTo("Display.html") &>
diff --git a/html/RTIR/Incident/Create.html b/html/RTIR/Incident/Create.html
index 8f3fcd71..09247c83 100644
--- a/html/RTIR/Incident/Create.html
+++ b/html/RTIR/Incident/Create.html
@@ -198,6 +198,8 @@ if ( $ChildObj && $ChildObj->id && !$ChildObj->CurrentUserHasRight('ModifyTicket
 
 </&>
 
+<& /Ticket/Elements/ShowAssetsOnCreate, QueueObj => $QueueObj, ARGSRef => \%ARGS &>
+
 <& /Elements/EditCustomFieldCustomGroupings,
     %ARGS,
     %CFDefaults,
diff --git a/html/RTIR/Incident/Display.html b/html/RTIR/Incident/Display.html
index 9db56f06..97bfa27d 100644
--- a/html/RTIR/Incident/Display.html
+++ b/html/RTIR/Incident/Display.html
@@ -304,6 +304,8 @@
     TicketObj => $TicketObj,
 &>
 
+<& /Ticket/Elements/ShowAssets, Ticket => $TicketObj &>
+
 <& /RTIR/Elements/ShowArticles, Ticket => $TicketObj &>
 
 <& /RTIR/Elements/ShowCVEDetails, Ticket => $TicketObj &>
@@ -470,6 +472,9 @@ unless( $new_ticket || $SkipProcessing ) {
     push @results, ProcessTicketBasics( ARGSRef => \%ARGS, TicketObj => $TicketObj );
     push @results, ProcessObjectCustomFieldUpdates( ARGSRef => \%ARGS, Object => $TicketObj );
     push @results, ProcessTicketDates( ARGSRef => \%ARGS, TicketObj => $TicketObj );
+    my $strict_acl = RT->Config->Set( StrictLinkACL => 0 );
+    push @results, ProcessTicketLinks( ARGSRef => \%ARGS, TicketObj => $TicketObj );
+    RT->Config->Set( StrictLinkACL => $strict_acl );
 }
 
 if ( !$SkipProcessing && ( $ARGS{'BulkLink'} || $Child ) ) {

-----------------------------------------------------------------------


hooks/post-receive
-- 
rtir


More information about the rt-commit mailing list