From 64dc7acc93a824bf3ecc97a50386ebce41a48ddb 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 Content-Type: text/plain; charset=utf-8 This patch restores the previous version of the regular expression which parses the OPACSuggestionMandatoryFields system preference value. Signed-off-by: Marcel de Rooy --- 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.11.0