Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 2b260ba4

Von Sven Schöling vor fast 14 Jahren hinzugefügt

Dispatcher Mechanismus schlägt bei resubmit fehl.

Fix für Bug 1581.

Damit dispatcher funktioniert, muss zusätzlich zu action=dispatcher auch noch
die dispatchte action übergeben werden.

Unterschiede anzeigen:

bin/mozilla/oe.pl
1944 1944
  foreach my $action (qw(delete delivery_order e_mail invoice print purchase_order purchase_order quotation
1945 1945
                         request_for_quotation sales_order sales_order save save_and_close save_as_new ship_to update)) {
1946 1946
    if ($::form->{"action_${action}"}) {
1947
      $::form->{dispatched_action} = $action;
1947 1948
      call_sub($action);
1948 1949
      return;
1949 1950
    }
templates/webpages/oe/form_header.html
1 1
[%- USE T8 %]
2 2
[%- USE HTML %]
3 3
[%- USE LxERP %]
4
[%- USE L %]
4 5
<body onLoad="[% onload %]">
5 6

  
6 7
  <form method="post" name="oe" action="[% script %]">
......
22 23
    <input type="hidden" name="follow_up_trans_type_1" value="[% HTML.escape(type) %]">
23 24
    <input type="hidden" name="follow_up_trans_info_1" value="[% HTML.escape(follow_up_trans_info) %]">
24 25
    <input type="hidden" name="follow_up_rowcount" value="1">
26
[%- IF resubmit %]
27
[%# in case of resubmits, restore enough information for dispatcher to work %]
28
    [% L.hidden_tag('action_' _ dispatched_action, 1) %]
29
[%- END %]
25 30

  
26 31
    <div class="listtop">[% title %]</div>
27 32

  

Auch abrufbar als: Unified diff