From 8a22ea993f462c0242f986a79fd479276f474779 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Fri, 5 Jul 2024 09:49:18 +0000 Subject: [PATCH] Bug 37260: Move setting of warnConnectBroker to 'about' block Test plan: 1) Apply test patch only 2) Visit /cgi-bin/koha/about.pl 3) Notice it shows 'Using RabbitMQ' (it should show 'Using SQL polling') 4) Apply this patch, repeat 3) 5) Notice it now shows 'Using SQL polling' 6) Remove test patch. Notice it shows 'Using RabbitMQ' again. --- about.pl | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/about.pl b/about.pl index 37e400fbb7..8da7a6d658 100755 --- a/about.pl +++ b/about.pl @@ -178,6 +178,17 @@ if ( $tab eq 'about' ) { $where_is_memcached_config = 'config_only'; } + { + # BackgroundJob - test connection to message broker + eval { + Koha::BackgroundJob->connect; + }; + if ( $@ ) { + warn $@; + $template->param( warnConnectBroker => $@ ); + } + } + $template->param( effective_caching_method => $effective_caching_method, memcached_servers => $memcached_servers, @@ -672,17 +683,6 @@ if($tab eq 'sysinfo') { $template->param( warnFastCataloging => $no_FA_framework ); } - { - # BackgroundJob - test connection to message broker - eval { - Koha::BackgroundJob->connect; - }; - if ( $@ ) { - warn $@; - $template->param( warnConnectBroker => $@ ); - } - } - #BZ 28267: Warn administrators if there are database rows with a format other than 'DYNAMIC' { $template->param( warnDbRowFormat => C4::Installer->has_non_dynamic_row_format ); -- 2.39.2