bookseller is returned as a scalar hashref not an array

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
Colin Campbell 2010-02-18 12:34:50 +00:00 committed by Galen Charlton
parent ea7aa11d71
commit a034d305da
1 changed files with 2 additions and 2 deletions

View File

@ -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"),
);