From e1cb00366d40cc3a1b07e065b51ad39c84baf7e6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Fri, 18 Sep 2009 08:33:52 +0200 Subject: [PATCH] =?utf8?q?Bugfix=20f=C3=BCr=20Bug=201127.=20webpages/ct/ge?= =?utf8?q?t=5Fdelivery=5Fmaster=20ist=20nicht=20customer/vendor=20sicher.?= =?utf8?q?=20Eine=20entsprechende=20Abfrage=20in=20das=20Template=20eingef?= =?utf8?q?=C3=BCgt.=20Ferner=20vor=20dem=20Aufruf=20von=20parse=5Fhtml=20n?= =?utf8?q?och=20->IS=5FCUSTOMER=20gesetzt?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/ct.pl | 1 + templates/webpages/ct/get_delivery_de.html | 2 +- templates/webpages/ct/get_delivery_master.html | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/mozilla/ct.pl b/bin/mozilla/ct.pl index 0128c29e4..35f106475 100644 --- a/bin/mozilla/ct.pl +++ b/bin/mozilla/ct.pl @@ -599,6 +599,7 @@ sub get_delivery { $auth->assert('customer_vendor_edit'); CT->get_delivery(\%myconfig, \%$form ); + $form->{IS_CUSTOMER} = $form->{db} eq 'customer'; print $form->ajax_response_header(), $form->parse_html_template('ct/get_delivery'); diff --git a/templates/webpages/ct/get_delivery_de.html b/templates/webpages/ct/get_delivery_de.html index 1d71757d8..ddfd0750a 100644 --- a/templates/webpages/ct/get_delivery_de.html +++ b/templates/webpages/ct/get_delivery_de.html @@ -16,7 +16,7 @@ [%- FOREACH row = DELIVERY %] [% HTML.escape(row.shiptoname) UNLESS loop.prev.shiptoname == row.shiptoname %]  - [% IF row.id %][% END %][% HTML.escape(row.invnumber) || ' ' %][% IF row.id %][% END %] + [% IF row.id %][% END %][% HTML.escape(row.invnumber) || ' ' %][% IF row.id %][% END %] [% IF row.oe_id %][% END %][% HTML.escape(row.ordnumber) || ' ' %][% IF row.oe_id %][% END %] [% HTML.escape(row.transdate) || ' ' %] [% HTML.escape(row.description) || ' ' %] diff --git a/templates/webpages/ct/get_delivery_master.html b/templates/webpages/ct/get_delivery_master.html index 774909e09..0ca76e103 100644 --- a/templates/webpages/ct/get_delivery_master.html +++ b/templates/webpages/ct/get_delivery_master.html @@ -16,7 +16,7 @@ [%- FOREACH row = DELIVERY %] [% HTML.escape(row.shiptoname) UNLESS loop.prev.shiptoname == row.shiptoname %]  - [% IF row.id %][% END %][% HTML.escape(row.invnumber) || ' ' %][% IF row.id %][% END %] + [% IF row.id %][% END %][% HTML.escape(row.invnumber) || ' ' %][% IF row.id %][% END %] [% IF row.oe_id %][% END %][% HTML.escape(row.ordnumber) || ' ' %][% IF row.oe_id %][% END %] [% HTML.escape(row.transdate) || ' ' %] [% HTML.escape(row.description) || ' ' %] -- 2.20.1