From: Moritz Bunkus Date: Wed, 21 Nov 2012 14:43:48 +0000 (+0100) Subject: Kosmetik/Refactoring X-Git-Tag: release-3.0.0beta2~10^2~4^2~4 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=c25716f8e96b948bba33b880257191b7fab9fc5d;p=kivitendo-erp.git Kosmetik/Refactoring --- diff --git a/bin/mozilla/is.pl b/bin/mozilla/is.pl index 47e713167..c6c2bfe34 100644 --- a/bin/mozilla/is.pl +++ b/bin/mozilla/is.pl @@ -807,7 +807,7 @@ sub use_as_template { $main::auth->assert('invoice_edit'); - map { delete $form->{$_} } qw(printed emailed queued invnumber invdate deliverydate id datepaid_1 gldate_1 acc_trans_id_1 source_1 memo_1 paid_1 exchangerate_1 AP_paid_1 storno locked); + delete @{ $form }{qw(printed emailed queued invnumber invdate deliverydate id datepaid_1 gldate_1 acc_trans_id_1 source_1 memo_1 paid_1 exchangerate_1 AP_paid_1 storno locked)}; $form->{paidaccounts} = 1; $form->{rowcount}--; $form->{invdate} = $form->current_date(\%myconfig);