View | Details | Raw Unified | Return to bug 22657
Collapse All | Expand All

(-)a/opac/opac-suggestions.pl (-2 / +1 lines)
Lines 212-218 my @mandatoryfields; Link Here
212
{
212
{
213
    last unless ($op eq 'add');
213
    last unless ($op eq 'add');
214
    my $fldsreq_sp = C4::Context->preference("OPACSuggestionMandatoryFields") || 'title';
214
    my $fldsreq_sp = C4::Context->preference("OPACSuggestionMandatoryFields") || 'title';
215
    @mandatoryfields = split( ",", $fldsreq_sp );
215
    @mandatoryfields = sort split(/\s*\,\s*/, $fldsreq_sp);
216
    foreach (@mandatoryfields) {
216
    foreach (@mandatoryfields) {
217
        $template->param( $_."_required" => 1);
217
        $template->param( $_."_required" => 1);
218
    }
218
    }
219
- 

Return to bug 22657