From 2b260ba4ae39d5827145f8aed03f5afeb62e36ad Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Tue, 1 Feb 2011 15:15:44 +0100 Subject: [PATCH] =?utf8?q?Dispatcher=20Mechanismus=20schl=C3=A4gt=20bei=20?= =?utf8?q?resubmit=20fehl.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix für Bug 1581. Damit dispatcher funktioniert, muss zusätzlich zu action=dispatcher auch noch die dispatchte action übergeben werden. --- bin/mozilla/oe.pl | 1 + templates/webpages/oe/form_header.html | 5 +++++ 2 files changed, 6 insertions(+) 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 %]
-- 2.20.1