Kosmetik/Refactoring
authorMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 21 Nov 2012 14:43:48 +0000 (15:43 +0100)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 21 Nov 2012 14:43:48 +0000 (15:43 +0100)
bin/mozilla/is.pl

index 47e7131..c6c2bfe 100644 (file)
@@ -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);