From: Sven Schöling Date: Tue, 1 Feb 2011 14:15:44 +0000 (+0100) Subject: Dispatcher Mechanismus schlägt bei resubmit fehl. X-Git-Tag: release-2.6.2~11 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=2b260ba4ae39d5827145f8aed03f5afeb62e36ad;p=kivitendo-erp.git 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. --- diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index 8398006ec..beaf99134 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -1944,6 +1944,7 @@ sub dispatcher { 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; } diff --git a/templates/webpages/oe/form_header.html b/templates/webpages/oe/form_header.html index 87555df39..927fead1c 100644 --- a/templates/webpages/oe/form_header.html +++ b/templates/webpages/oe/form_header.html @@ -1,6 +1,7 @@ [%- USE T8 %] [%- USE HTML %] [%- USE LxERP %] +[%- USE L %]
@@ -22,6 +23,10 @@ +[%- IF resubmit %] +[%# in case of resubmits, restore enough information for dispatcher to work %] + [% L.hidden_tag('action_' _ dispatched_action, 1) %] +[%- END %]
[% title %]