From f6158a03b132c6e4c8534752c64d17b3e4805c33 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Thu, 9 Jun 2016 15:10:10 +0200 Subject: [PATCH] Kosmetik/Lesbarkeit Ein klares delete statt ein kompliziertes map mit delete. --- bin/mozilla/io.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl index cf1428916..5da2dbe59 100644 --- a/bin/mozilla/io.pl +++ b/bin/mozilla/io.pl @@ -888,7 +888,7 @@ sub order { $form->{old_employee_id} = $form->{employee_id}; $form->{old_salesman_id} = $form->{salesman_id}; - map { delete $form->{$_} } qw(id printed emailed queued); + delete $form->{$_} foreach (qw(printed emailed queued)); my $buysell; if ($form->{script} eq 'ir.pl' || $form->{type} eq 'request_quotation') { $form->{title} = $locale->text('Add Purchase Order'); @@ -954,7 +954,7 @@ sub quotation { if ($form->{second_run}) { $form->{print_and_post} = 0; } - map { delete $form->{$_} } qw(id printed emailed queued); + delete $form->{$_} foreach (qw(printed emailed queued)); my $buysell; if ($form->{script} eq 'ir.pl' || $form->{type} eq 'purchase_order') { -- 2.20.1