Skip to content

Commit

Permalink
Add callback before ticket metadata on update page
Browse files Browse the repository at this point in the history
Add a callback that allows modify arguments before ticket metadata
or even skip the rendering of the original metadata section.
  • Loading branch information
richieri-bps committed Apr 24, 2024
1 parent a5b80f5 commit c5df459
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions share/html/Ticket/Update.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@

<& /Elements/Crypt/SignEncryptWidget:ShowIssues, self => $gnupg_widget, Queue => $TicketObj->QueueObj &>

% my $skip_metadata = 0;
% $m->callback( CallbackName => 'BeforeMetadata', ARGSRef => \%ARGS, Ticket => $TicketObj, SkipMetadata => \$skip_metadata );
% unless ($skip_metadata) {

<div id="ticket-update-metadata">
<&|/Widgets/TitleBox, title => loc('Ticket and Transaction'), class => 'ticket-info-basics' &>
<div>
Expand Down Expand Up @@ -134,6 +138,7 @@

% $m->callback( %ARGS, CallbackName => 'RightColumnBottom', Ticket => $TicketObj );
</div>
% }

<div id="ticket-update-message">
% if ( RT->Config->Get('SimplifiedRecipients', $session{'CurrentUser'}) ) {
Expand Down

0 comments on commit c5df459

Please sign in to comment.