From 9515ee6bf05236d189f5318bc33a5469e45acc5b Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 9 May 2019 17:52:26 +0000 Subject: [PATCH] Bug 22657: (QA follow-up) Restore previous version of regex This patch restores the previous version of the regular expression which parses the OPACSuggestionMandatoryFields system preference value. Signed-off-by: Marcel de Rooy Signed-off-by: Nick Clemens --- opac/opac-suggestions.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/opac-suggestions.pl b/opac/opac-suggestions.pl index 1d11d75cf4..8f792cd98f 100755 --- a/opac/opac-suggestions.pl +++ b/opac/opac-suggestions.pl @@ -212,7 +212,7 @@ my @mandatoryfields; { last unless ($op eq 'add'); my $fldsreq_sp = C4::Context->preference("OPACSuggestionMandatoryFields") || 'title'; - @mandatoryfields = split( ",", $fldsreq_sp ); + @mandatoryfields = sort split(/\s*\,\s*/, $fldsreq_sp); foreach (@mandatoryfields) { $template->param( $_."_required" => 1); } -- 2.39.5