[Rt-commit] rtir branch, 5.0-trunk, updated. 5.0.0-19-g326e04f2
? sunnavy
sunnavy at bestpractical.com
Mon Jan 4 16:42:13 EST 2021
The branch, 5.0-trunk has been updated
via 326e04f25888424cf36b6921ee1dd9fcae39a8c7 (commit)
from 4b67c191c1a2979ab1d2e989bd65a4b578ae95ec (commit)
Summary of changes:
html/Callbacks/RTIR/Ticket/Elements/ShowLinkedQueues/MassageQueries | 1 +
1 file changed, 1 insertion(+)
- Log -----------------------------------------------------------------
commit 326e04f25888424cf36b6921ee1dd9fcae39a8c7
Author: sunnavy <sunnavy at bestpractical.com>
Date: Tue Jan 5 05:36:04 2021 +0800
Don't override default empty messages if it's not RTIR queue
diff --git a/html/Callbacks/RTIR/Ticket/Elements/ShowLinkedQueues/MassageQueries b/html/Callbacks/RTIR/Ticket/Elements/ShowLinkedQueues/MassageQueries
index 07c99a70..a05dbc8a 100644
--- a/html/Callbacks/RTIR/Ticket/Elements/ShowLinkedQueues/MassageQueries
+++ b/html/Callbacks/RTIR/Ticket/Elements/ShowLinkedQueues/MassageQueries
@@ -56,6 +56,7 @@ return unless $lifecycle;
return if $lifecycle eq RT::IR->lifecycle_countermeasure && RT->Config->Get('RTIR_DisableCountermeasures');
my $friendly_lifecycle = RT::IR::FriendlyLifecycle($lifecycle);
+return unless $friendly_lifecycle;
@$EmptyMessages
= ( loc( '(No active [_1])', loc($friendly_lifecycle) ), loc( '(No inactive [_1])', loc($friendly_lifecycle) ) );
-----------------------------------------------------------------------
More information about the rt-commit
mailing list