Bug 29416: (bug 28941 follow-up) Restore suggestion prefill
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 5 Nov 2021 09:13:47 +0000 (10:13 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 5 Nov 2021 11:17:08 +0000 (12:17 +0100)
commite290d8d02abbbc6c5160b02dee4dede2fa059bf4
treebdd21dcb62f1b66ce17280c1a80426d7dd6b3b8a
parentada1c03350eb952928f68b5f1594174a3e25bf98
Bug 29416: (bug 28941 follow-up) Restore suggestion prefill

From commit 586bed1319592e05f5dc3acf64a1dba8cae69d6b
     Bug 28941: Filter suggestion inputs at the OPAC

But later in the script we send { suggestion => %$suggestion } to the
template and so erase the variable previously passed.

Test plan:
Login at the OPAC
Go to the bibliographic detail page
Suggest for purchase
=> The form must be prefilled!

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
opac/opac-suggestions.pl