From: Marcel de Rooy Date: Fri, 16 Mar 2018 08:02:36 +0000 (+0100) Subject: Bug 20430: (See also bug 19436) Button display depends on wrong server count X-Git-Tag: v18.05.00-rc1~673 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=d9ce37ff3e7f351bdf3506e925b1333217743cea;p=srvgit Bug 20430: (See also bug 19436) Button display depends on wrong server count This is a QA follow-up of bug 19436, submitted separately for ease of backporting it. (The bug was not raised by 19436.) Obviously, the number of authority servers not biblio servers should be the key factor for showing or hiding the button for new authority records via Z39.50/SRU. Trivial fix. Signed-off-by: Marcel de Rooy Signed-off-by: Jonathan Druart --- diff --git a/authorities/authorities-home.pl b/authorities/authorities-home.pl index f6d3f85a72..89142f22d6 100755 --- a/authorities/authorities-home.pl +++ b/authorities/authorities-home.pl @@ -217,7 +217,7 @@ if ( $op eq '' ) { my $schema = Koha::Database->new()->schema(); my $servers = $schema->resultset('Z3950server')->search( { - recordtype => 'biblio', + recordtype => 'authority', servertype => ['zed', 'sru'], }, { result_class => 'DBIx::Class::ResultClass::HashRefInflator',