From 804a46a9c88e50eafff8293a11aeb6245abed53e Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Sun, 13 Jan 2008 19:43:07 -0600 Subject: [PATCH] Fix for bug 1539 Signed-off-by: Joshua Ferraro --- acqui/booksellers.pl | 6 +++++- .../intranet-tmpl/prog/en/modules/acqui/booksellers.tmpl | 5 ++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/acqui/booksellers.pl b/acqui/booksellers.pl index ba22532a3e..c6cc8d5f6f 100755 --- a/acqui/booksellers.pl +++ b/acqui/booksellers.pl @@ -80,7 +80,11 @@ my $supplier = $query->param('supplier'); my @suppliers = GetBookSeller($supplier); my $count = scalar @suppliers; - +if ($count == 1){ + $template->param( supplier_name => $suppliers[0]->{'name'}, + id => $suppliers[0]->{'id'} + ); +} # check if we have to "close" a basket before building page my $op = $query->param('op'); my $basket = $query->param('basketno'); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tmpl index 680e5a2e6a..7f1cdc6a02 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tmpl @@ -15,8 +15,11 @@
- + +

+

You searched on vendor , results found

+
-- 2.39.5