Skip to content

Commit

Permalink
Update obsolete event name reloadRequired to mainContainerChanged
Browse files Browse the repository at this point in the history
It was renamed it in c7b84df.
  • Loading branch information
sunnavy committed Jan 13, 2025
1 parent a908741 commit ae78d9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion share/html/Helpers/AssetUpdate
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ for my $txn ( @{ $asset->{_TransactionBatch} || [] } ) {
if ( ( RT::Interface::Web::RequestENV('HTTP_HX_CURRENT_URL') // '' ) =~ m{/Asset/Display.html}
&& $old_layout ne GetPageLayout( Object => $asset, Page => 'Display' ) )
{
push @events, 'reloadRequired';
push @events, 'mainContainerChanged';
}

my %page_menu_events = ( 'assetStatusChanged' => 1 );
Expand Down
2 changes: 1 addition & 1 deletion share/html/Helpers/TicketUpdate
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ if ( !$checks_failure ) {
if ( ( RT::Interface::Web::RequestENV('HTTP_HX_CURRENT_URL') // '' ) =~ m{/Ticket/Display.html}
&& $old_layout ne GetPageLayout( Object => $TicketObj, Page => 'Display' ) )
{
push @events, 'reloadRequired';
push @events, 'mainContainerChanged';
}

my %page_menu_events = map { 'ticket' . $_ . 'Changed' => 1 } qw/Status Owner/,
Expand Down

0 comments on commit ae78d9e

Please sign in to comment.