From d0bcc93e6225d73928c6bd0c0c724688d226664f Mon Sep 17 00:00:00 2001
From: Jacek Ablewicz <abl@biblos.pk.edu.pl>
Date: Fri, 13 Jun 2014 21:27:38 +0200
Subject: [PATCH] Bug 10519 - Suggestions: 'Organize by' and correct display of tab descriptions broken

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>
---
 suggestion/suggestion.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/suggestion/suggestion.pl b/suggestion/suggestion.pl
index 2af64ab..fa5fe3f 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;
-- 
1.7.2.5