From: Jan Büren Date: Thu, 9 Jun 2016 13:10:10 +0000 (+0200) Subject: Kosmetik/Lesbarkeit X-Git-Tag: release-3.4.1~73 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=f6158a03b132c6e4c8534752c64d17b3e4805c33;p=kivitendo-erp.git Kosmetik/Lesbarkeit Ein klares delete statt ein kompliziertes map mit delete. --- 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') {