From a034d305da5a7bc22a70ba2329b8d0ec7e239559 Mon Sep 17 00:00:00 2001 From: Colin Campbell Date: Thu, 18 Feb 2010 12:34:50 +0000 Subject: [PATCH] bookseller is returned as a scalar hashref not an array Signed-off-by: Galen Charlton --- admin/aqcontract.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/aqcontract.pl b/admin/aqcontract.pl index 81cc640a00..5fe7be3cca 100755 --- a/admin/aqcontract.pl +++ b/admin/aqcontract.pl @@ -35,7 +35,7 @@ my $contractnumber = $input->param('contractnumber'); my $booksellerid = $input->param('booksellerid'); my $op = $input->param('op') || ''; -my @bookseller = GetBookSellerFromId($booksellerid); +my $bookseller = GetBookSellerFromId($booksellerid); my ( $template, $loggedinuser, $cookie ) = get_template_and_user( { template_name => "admin/aqcontract.tmpl", @@ -50,7 +50,7 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( $template->param( contractnumber => $contractnumber, booksellerid => $booksellerid, - booksellername => $bookseller[0]->{name}, + booksellername => $bookseller->{name}, DHTMLcalendar_dateformat => C4::Dates->DHTMLcalendar(), dateformat => C4::Context->preference("dateformat"), ); -- 2.39.5