From b254ba338a904bf6469425f07970ed0136d95744 Mon Sep 17 00:00:00 2001 From: Niclas Zimmermann Date: Tue, 2 Apr 2013 11:57:02 +0200 Subject: [PATCH] Zu viel Code entfernt MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit c9c4734626e355fc52d91cb0e375b1864a49ccf6 hat Code entfernt, der nicht entfernt werden sollte. Ist jetzt wieder hinzugekommen, allerdings mit einer kleinen Schönheitskorrektur. --- SL/AM.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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} = ""; -- 2.20.1