From 8947b6e8a5db736d24213bd6adc1c01861bfc4ab 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 Signed-off-by: Chris Cormack --- .../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