Skip to content

Commit

Permalink
Support to show assets on create/display
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnavy committed Nov 28, 2023
1 parent 70654f0 commit 3f1c0e7
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions html/RTIR/Create.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down Expand Up @@ -165,6 +166,8 @@
&>
</&>

<& /Ticket/Elements/ShowAssetsOnCreate, QueueObj => $QueueObj, ARGSRef => \%ARGS &>

<& /Elements/EditCustomFieldCustomGroupings,
%ARGS,
%CFDefaults,
Expand Down
3 changes: 3 additions & 0 deletions html/RTIR/Display.html
Original file line number Diff line number Diff line change
Expand Up @@ -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") &>
Expand Down
2 changes: 2 additions & 0 deletions html/RTIR/Incident/Create.html
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@

</&>

<& /Ticket/Elements/ShowAssetsOnCreate, QueueObj => $QueueObj, ARGSRef => \%ARGS &>

<& /Elements/EditCustomFieldCustomGroupings,
%ARGS,
%CFDefaults,
Expand Down
5 changes: 5 additions & 0 deletions html/RTIR/Incident/Display.html
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,8 @@
TicketObj => $TicketObj,
&>

<& /Ticket/Elements/ShowAssets, Ticket => $TicketObj &>

<& /RTIR/Elements/ShowArticles, Ticket => $TicketObj &>

<& /RTIR/Elements/ShowCVEDetails, Ticket => $TicketObj &>
Expand Down Expand Up @@ -470,6 +472,9 @@
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 ) ) {
Expand Down

0 comments on commit 3f1c0e7

Please sign in to comment.