Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision e1cb0036

Von Jan Büren vor etwa 15 Jahren hinzugefügt

  • ID e1cb00366d40cc3a1b07e065b51ad39c84baf7e6
  • Vorgänger 224af4c2
  • Nachfolger e69e3657

Bugfix für Bug 1127. webpages/ct/get_delivery_master ist nicht customer/vendor sicher. Eine entsprechende Abfrage in das Template eingefügt. Ferner vor dem Aufruf von parse_html noch ->IS_CUSTOMER gesetzt

Unterschiede anzeigen:

bin/mozilla/ct.pl
599 599
  $auth->assert('customer_vendor_edit');
600 600

  
601 601
  CT->get_delivery(\%myconfig, \%$form );
602
  $form->{IS_CUSTOMER} = $form->{db} eq 'customer';
602 603

  
603 604
  print $form->ajax_response_header(), $form->parse_html_template('ct/get_delivery');
604 605

  
templates/webpages/ct/get_delivery_de.html
16 16
[%- FOREACH row = DELIVERY %]
17 17
        <tr class="listrow[% loop.count % 2 %]">
18 18
          <td>[% HTML.escape(row.shiptoname) UNLESS loop.prev.shiptoname == row.shiptoname %]&nbsp;</td>
19
          <td>[% IF row.id %]<a href='is.pl?action=edit&id=[% HTML.escape(row.id) %]'>[% END %][% HTML.escape(row.invnumber)   || '&nbsp;' %][% IF row.id %]</a>[% END %]</td>
19
          <td>[% IF row.id %]<a href='[% IF IS_CUSTOMER %]is[% ELSE %]ir[% END %].pl?action=edit&id=[% HTML.escape(row.id) %]'>[% END %][% HTML.escape(row.invnumber)   || '&nbsp;' %][% IF row.id %]</a>[% END %]</td>
20 20
          <td>[% IF row.oe_id %]<a href='oe.pl?action=edit&type=sales_order&vc=customer&id=[% HTML.escape(row.oe_id) %]'>[% END %][% HTML.escape(row.ordnumber)   || '&nbsp;' %][% IF row.oe_id %]</a>[% END %]</td>
21 21
          <td>[% HTML.escape(row.transdate)   || '&nbsp;' %]</td>
22 22
          <td>[% HTML.escape(row.description) || '&nbsp;' %]</td>
templates/webpages/ct/get_delivery_master.html
16 16
[%- FOREACH row = DELIVERY %]
17 17
        <tr class="listrow[% loop.count % 2 %]">
18 18
          <td>[% HTML.escape(row.shiptoname) UNLESS loop.prev.shiptoname == row.shiptoname %]&nbsp;</td>
19
          <td>[% IF row.id %]<a href='is.pl?action=edit&id=[% HTML.escape(row.id) %]'>[% END %][% HTML.escape(row.invnumber)   || '&nbsp;' %][% IF row.id %]</a>[% END %]</td>
19
          <td>[% IF row.id %]<a href='[% IF IS_CUSTOMER %]is[% ELSE %]ir[% END %].pl?action=edit&id=[% HTML.escape(row.id) %]'>[% END %][% HTML.escape(row.invnumber)   || '&nbsp;' %][% IF row.id %]</a>[% END %]</td>
20 20
          <td>[% IF row.oe_id %]<a href='oe.pl?action=edit&type=sales_order&vc=customer&id=[% HTML.escape(row.oe_id) %]'>[% END %][% HTML.escape(row.ordnumber)   || '&nbsp;' %][% IF row.oe_id %]</a>[% END %]</td>
21 21
          <td>[% HTML.escape(row.transdate)   || '&nbsp;' %]</td>
22 22
          <td>[% HTML.escape(row.description) || '&nbsp;' %]</td>

Auch abrufbar als: Unified diff