From c0f1c3eec56473b63fe132bea71b5cf3b2943065 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Tue, 1 Feb 2011 15:14:21 +0100 Subject: [PATCH] =?utf8?q?oe.pl::dispatcher=20-=20unn=C3=B6tige=20Lokalisi?= =?utf8?q?erungen=20von=20Globals=20entfernt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/oe.pl | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index 0e469d8d3..8398006ec 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -1941,16 +1941,13 @@ sub report_for_todo_list { } sub dispatcher { - my $form = $main::form; - my $locale = $main::locale; - 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}"}) { + if ($::form->{"action_${action}"}) { call_sub($action); return; } } - $form->error($locale->text('No action defined.')); + $::form->error($::locale->text('No action defined.')); } -- 2.20.1