Bug 40466: Zebra status misleading in "Server information" tab
After changes to about.pl the checking of the Zebra status has landed
in "sysinfo" section instead of "about". As a result "Zebra status"
always reports "Running" even if Zebra is off.
Test plan:
==========
1. Turn zebra server off (koha-zebra --stop kohadev) and check in
"Server information" (More > About Koha) the "Zebra status" info.
You will see "Running".
2. Apply the patch ; restart_all ; koha-zebra --stop kohadev
3. Check "Zebra status" in "Server information". You should see now:
"Zebra server seems not to be available. Is it started?".
Signed-off-by: David Flater <flaterdavid@gmail.com>
Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 1835ced4c0)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
parent
fa9279644a
commit
35267ecfa8
6
about.pl
6
about.pl
|
|
@ -132,6 +132,8 @@ if ( $tab eq 'about' ) {
|
|||
|
||||
my $zebraVersion = `zebraidx -V`;
|
||||
|
||||
my $errZebraConnection = C4::Context->Zconn( "biblioserver", 0 )->errcode();
|
||||
|
||||
# Check running PSGI env
|
||||
if ( C4::Context->psgi_env ) {
|
||||
$template->param(
|
||||
|
|
@ -173,6 +175,7 @@ if ( $tab eq 'about' ) {
|
|||
where_is_memcached_config => $where_is_memcached_config,
|
||||
perlPath => $perl_path,
|
||||
zebraVersion => $zebraVersion,
|
||||
errZebraConnection => $errZebraConnection,
|
||||
kohaVersion => $versions{'kohaVersion'},
|
||||
osVersion => $versions{'osVersion'},
|
||||
perlVersion => $versions{'perlVersion'},
|
||||
|
|
@ -230,8 +233,6 @@ if ( $tab eq 'sysinfo' ) {
|
|||
);
|
||||
$template->param( invalid_yesno => $invalid_yesno );
|
||||
|
||||
my $errZebraConnection = C4::Context->Zconn( "biblioserver", 0 )->errcode();
|
||||
|
||||
my $warnIsRootUser = ( !$loggedinuser );
|
||||
|
||||
my $warnNoActiveCurrency = ( !defined Koha::Acquisition::Currencies->get_active );
|
||||
|
|
@ -599,7 +600,6 @@ if ( $tab eq 'sysinfo' ) {
|
|||
$warnPrefAnonymousPatronAnonSuggestions_PatronDoesNotExist,
|
||||
warnPrefKohaAdminEmailAddress => $warnPrefKohaAdminEmailAddress,
|
||||
warnPrefOpacHiddenItems => $warnPrefOpacHiddenItems,
|
||||
errZebraConnection => $errZebraConnection,
|
||||
warnIsRootUser => $warnIsRootUser,
|
||||
warnNoActiveCurrency => $warnNoActiveCurrency,
|
||||
warnNoTemplateCaching => ( C4::Context->config('template_cache_dir') ? 0 : 1 ),
|
||||
|
|
|
|||
Loading…
Reference in New Issue