Bugzilla – Attachment 168530 Details for
Bug 37260
Problem with connection to broker not displayed on the about page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37260: Move setting of warnConnectBroker to 'about' block
Bug-37260-Move-setting-of-warnConnectBroker-to-abo.patch (text/plain), 1.77 KB, created by
Pedro Amorim
on 2024-07-05 09:52:16 UTC
(
hide
)
Description:
Bug 37260: Move setting of warnConnectBroker to 'about' block
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2024-07-05 09:52:16 UTC
Size:
1.77 KB
patch
obsolete
>From 8a22ea993f462c0242f986a79fd479276f474779 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >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 <staff_url>/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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 37260
:
168529
|
168530
|
168549
|
168550
|
169167