From ae78d9e6d8323519f5de95d57001ed8ddcd93abb Mon Sep 17 00:00:00 2001 From: sunnavy Date: Mon, 13 Jan 2025 09:39:50 -0500 Subject: [PATCH] Update obsolete event name reloadRequired to mainContainerChanged It was renamed it in c7b84dfb4d. --- share/html/Helpers/AssetUpdate | 2 +- share/html/Helpers/TicketUpdate | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/share/html/Helpers/AssetUpdate b/share/html/Helpers/AssetUpdate index 42fd87c2b7..9f79e75c4b 100644 --- a/share/html/Helpers/AssetUpdate +++ b/share/html/Helpers/AssetUpdate @@ -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 ); diff --git a/share/html/Helpers/TicketUpdate b/share/html/Helpers/TicketUpdate index ed4e6dddc8..6c419d103f 100644 --- a/share/html/Helpers/TicketUpdate +++ b/share/html/Helpers/TicketUpdate @@ -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/,