From 2338d3a6c5cceec65987fda617883f3bcbc7cc30 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Mon, 9 Apr 2012 16:52:56 +0200 Subject: [PATCH] Bug 7926: Acq search results show empty () for orders without basket group To test: - search for orders by title or vendor - make sure some results are attached to a basket group, while others are not - make sure correct information shows in the basket group column of search results --- .../prog/en/modules/acqui/histsearch.tt | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt index 80eb827..e3445cd 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt @@ -78,7 +78,13 @@ [% FOREACH suggestions_loo IN suggestions_loop %] [% suggestions_loo.basketname %] ([% suggestions_loo.basketno %]) - [% suggestions_loo.groupname %] ([% suggestions_loo.basketgroupid %]) + + [% IF ( suggestions_loo.basketgroupid ) %] + [% suggestions_loo.groupname %] ([% suggestions_loo.basketgroupid %]) + [% ELSE %] +   + [% END %] + [% IF ( suggestions_loo.invoicenumber ) %] [% suggestions_loo.invoicenumber %] [% ELSE %] -- 1.7.5.4