From 2f837bafee0d09a890171f4b0cd27efa5a0e3670 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 Signed-off-by: Chris Cormack - Fixed merge conflict Signed-off-by: Paul Poulain --- .../intranet-tmpl/prog/en/modules/acqui/histsearch.tt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 5de1668521..aa5e12b866 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt @@ -94,7 +94,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 %] -- 2.39.5