From 4c6fde24e85c605294d2aa327dcd46b0139b1055 Mon Sep 17 00:00:00 2001 From: Jacek Ablewicz Date: Fri, 13 Jun 2014 21:27:38 +0200 Subject: [PATCH] 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 Signed-off-by: Marcel de Rooy Signed-off-by: Tomas Cohen Arazi --- suggestion/suggestion.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/suggestion/suggestion.pl b/suggestion/suggestion.pl index 2af64ab76a..fa5fe3ffe4 100755 --- a/suggestion/suggestion.pl +++ b/suggestion/suggestion.pl @@ -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; -- 2.39.2