Fix für Bug 1581.
Damit dispatcher funktioniert, muss zusätzlich zu action=dispatcher auch noch
die dispatchte action übergeben werden.
foreach my $action (qw(delete delivery_order e_mail invoice print purchase_order purchase_order quotation
request_for_quotation sales_order sales_order save save_and_close save_as_new ship_to update)) {
if ($::form->{"action_${action}"}) {
+ $::form->{dispatched_action} = $action;
call_sub($action);
return;
}
[%- USE T8 %]
[%- USE HTML %]
[%- USE LxERP %]
+[%- USE L %]
<body onLoad="[% onload %]">
<form method="post" name="oe" action="[% script %]">
<input type="hidden" name="follow_up_trans_type_1" value="[% HTML.escape(type) %]">
<input type="hidden" name="follow_up_trans_info_1" value="[% HTML.escape(follow_up_trans_info) %]">
<input type="hidden" name="follow_up_rowcount" value="1">
+[%- IF resubmit %]
+[%# in case of resubmits, restore enough information for dispatcher to work %]
+ [% L.hidden_tag('action_' _ dispatched_action, 1) %]
+[%- END %]
<div class="listtop">[% title %]</div>