Koha/installer/data/mysql/db_revs/230501002.pl
Tomas Cohen Arazi 073744284a
Bug 33117: DBRev 23.05.01.002
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 5f1c5a04fa)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2023-07-17 14:45:23 +01:00

17 lines
664 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "33117",
description => "Patron checkout is not able to find patrons if using a second surname or other name during the search",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
$dbh->do(q{
INSERT INTO systempreferences (`variable`,`value`,`explanation`,`options`,`type`)
VALUES ('DefaultPatronSearchMethod','starts_with','Allows staff to set a default method when searching for patrons with autocomplete','starts_with|contains','Choice');
});
say $out "Added new system preference 'DefaultPatronSearchMethod'";
},
};