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 commit1835ced4c0) Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de> (cherry picked from commit35267ecfa8) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
cb7080f755
commit
0dee174da3
6
about.pl
6
about.pl
|
|
@ -149,6 +149,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(
|
||||
|
|
@ -189,6 +191,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'},
|
||||
|
|
@ -248,8 +251,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);
|
||||
|
|
@ -624,7 +625,6 @@ if($tab eq 'sysinfo') {
|
|||
warnPrefAnonymousPatronAnonSuggestions_PatronDoesNotExist => $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