From cdedd6f2db90ace66d083dc678c239d1cf4ee02c Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 11 Aug 2023 11:31:24 +0000 Subject: [PATCH] Bug 29822: (QA follow-up) Use pipe for all field separators - Tidy atomic update Signed-off-by: Nick Clemens Signed-off-by: Tomas Cohen Arazi --- installer/data/mysql/atomicupdate/bug_29822.pl | 6 ++++-- .../intranet-tmpl/prog/en/includes/patronfields.inc | 9 ++++----- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/installer/data/mysql/atomicupdate/bug_29822.pl b/installer/data/mysql/atomicupdate/bug_29822.pl index 73c0dfdfea..31e806a18b 100755 --- a/installer/data/mysql/atomicupdate/bug_29822.pl +++ b/installer/data/mysql/atomicupdate/bug_29822.pl @@ -8,13 +8,15 @@ return { my ( $dbh, $out ) = @$args{qw(dbh out)}; # Do you stuffs here - $dbh->do(q{ + $dbh->do( + q{ UPDATE systempreferences SET value = REPLACE( value, ',', '|' ) WHERE variable = 'DefaultPatronSearchFields' - }); + } + ); say $out "Updated system preference 'DefaultPatronSearchFields"; }, }; diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patronfields.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patronfields.inc index b4c5047863..03e6d49022 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patronfields.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patronfields.inc @@ -87,12 +87,11 @@