From: Niclas Zimmermann Date: Tue, 2 Apr 2013 09:57:02 +0000 (+0200) Subject: Zu viel Code entfernt X-Git-Tag: release-3.1.0beta1~504 X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/commitdiff_plain/b254ba338a904bf6469425f07970ed0136d95744?ds=sidebyside;hp=--cc Zu viel Code entfernt c9c4734626e355fc52d91cb0e375b1864a49ccf6 hat Code entfernt, der nicht entfernt werden sollte. Ist jetzt wieder hinzugekommen, allerdings mit einer kleinen Schönheitskorrektur. --- b254ba338a904bf6469425f07970ed0136d95744 diff --git a/SL/AM.pm b/SL/AM.pm index fc15f19af..af2c25f91 100644 --- a/SL/AM.pm +++ b/SL/AM.pm @@ -213,8 +213,8 @@ sub save_account { qw(AR_amount AR_tax AR_paid AP_amount AP_tax AP_paid IC_sale IC_cogs IC_taxpart IC_income IC_expense IC_taxservice); } - if ($form->{AR_include_in_dropdown}) { - $form->{$form->{AR_include_in_dropdown}} = $form->{AR_include_in_dropdown}; + for (qw(AR_include_in_dropdown AP_include_in_dropdown)) { + $form->{$form->{$_}} = $form->{$_} if $form->{$_}; } $form->{link} = "";