Bug 10519: (followup) Fix context for evalyating $borrowernumber

Follow-up to fix additional suggestion statuses, which are not working
properly due to

   416:  borrowernumber           => $input->param('borrowernumber'),

being evaluated in list context inside $template->param() call arguments.

Signed-off-by: Christopher Brannon <cbrannon@cdalibrary.org>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
Jacek Ablewicz 2014-06-13 21:27:38 +02:00 committed by Tomas Cohen Arazi
parent e19736fa83
commit 4c6fde24e8
1 changed files with 1 additions and 1 deletions

View File

@ -413,7 +413,7 @@ foreach my $field ( qw(managedby acceptedby suggestedby budgetid) ) {
$template->param(
%hashlists,
borrowernumber => $input->param('borrowernumber'),
borrowernumber => ($input->param('borrowernumber') // undef),
SuggestionStatuses => GetAuthorisedValues('SUGGEST_STATUS'),
);
output_html_with_http_headers $input, $cookie, $template->output;