From 73f9b3560998777a45fa01cd881a25c98dd1ad06 Mon Sep 17 00:00:00 2001 From: Colin Campbell Date: Thu, 14 Apr 2011 11:29:33 +0100 Subject: [PATCH] Bug 6191 Correct table entries in basket.tt Content-Type: text/plain; charset="utf-8" Some non-loop variables were localized to the loop causing Modify and Delete links to dissappear Gave the loop variable a meaningful name --- .../intranet-tmpl/prog/en/modules/acqui/basket.tt | 36 ++++++++++---------- 1 files changed, 18 insertions(+), 18 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt index 737dd40..355cfe4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt @@ -255,30 +255,30 @@ [% END %] - [% FOREACH books_loo IN books_loop %] - [% IF ( books_loo.order_received ) %][% ELSE %][% IF ( books_loo.toggle ) %][% ELSE %][% END %][% END %] + [% FOREACH orderline IN books_loop %] + [% IF orderline.order_received %][% ELSE %][% IF loop.index % 2 %][% ELSE %][% END %][% END %] -

[% IF ( books_loo.order_received ) %] (rcvd)[% END %] - [% books_loo.title |html %] by [% books_loo.author %] - [% IF ( books_loo.notes ) %] [% books_loo.notes %][% END %] - [% IF ( books_loo.isbn ) %] - [% books_loo.isbn %][% END %] - [% IF ( books_loo.issn ) %] - [% books_loo.issn %][% END %] - [% IF ( books_loo.publishercode ) %], [% books_loo.publishercode %][% END %] - [% IF ( books_loo.publicationyear ) %], [% books_loo.publicationyear %][% END %] +

[% IF orderline.order_received %] (rcvd)[% END %] + [% orderline.title |html %] by [% orderline.author %] + [% IF orderline.notes %] [% orderline.notes %][% END %] + [% IF orderline.isbn %] - [% orderline.isbn %][% END %] + [% IF orderline.issn %] - [% orderline.issn %][% END %] + [% IF orderline.publishercode %], [% orderline.publishercode %][% END %] + [% IF orderline.publicationyear %], [% orderline.publicationyear %][% END %]

- [% books_loo.rrp %] - [% books_loo.ecost %] - [% books_loo.quantity %] - [% books_loo.line_total %] - [% books_loo.budget_name %] - [% IF ( books_loo.active ) %] - [% UNLESS ( books_loo.closedate ) %] + [% orderline.rrp %] + [% orderline.ecost %] + [% orderline.quantity %] + [% orderline.line_total %] + [% orderline.budget_name %] + [% IF active %] + [% UNLESS closedate %] - Modify + Modify - Delete + Delete [% END %] [% END %] -- 1.7.4.2