[Koha-bugs] [Bug 29437] 500 error when performing a catalog search for an ISBN13 with no valid ISBN10
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Dec 8 16:09:08 CET 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29437
--- Comment #21 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
This is the most minimal maintenance solution I could come up with for 20.11:
diff --git a/C4/Breeding.pm b/C4/Breeding.pm
index 6b103b3..5b0d83a 100644
--- a/C4/Breeding.pm
+++ b/C4/Breeding.pm
@@ -96,6 +96,7 @@ sub BreedingSearch {
$query .= "isbn like ?";
push(@bind,"$isbn%");
}
+ return 0 unless @bind;
$sth = $dbh->prepare($query);
$sth->execute(@bind);
while (my $data = $sth->fetchrow_hashref) {
Since Koha returns a 200, it only gives you a few log lines less.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list