Bug 28941: Filter suggestion inputs at the OPAC
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 2 Sep 2021 09:51:48 +0000 (11:51 +0200)
committerKyle M Hall <kyle@bywatersolutions.com>
Wed, 15 Sep 2021 14:46:04 +0000 (10:46 -0400)
commitcc33f71b2a220eb22729d6bb2af206e7888e334f
treeadf51bbb3cb82afb218038c9528fabdb5c4fc59c
parente4f441cc147b9edec1909c3c47ed9f90f0b8f6c9
Bug 28941: Filter suggestion inputs at the OPAC

The following sequence is bad:
46 my $suggestion      = $input->Vars;

181         &NewSuggestion($suggestion);

All columns can be set when we insert the suggestion into the DB
We definitely want to avoid the following fields to be set by the final
user: acceptedby, accepteddate, STATUS, etc...

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
opac/opac-suggestions.pl