Zu viel Code entfernt
authorNiclas Zimmermann <niclas@kivitendo-premium.de>
Tue, 2 Apr 2013 09:57:02 +0000 (11:57 +0200)
committerNiclas Zimmermann <niclas@kivitendo-premium.de>
Tue, 2 Apr 2013 09:57:02 +0000 (11:57 +0200)
c9c4734626e355fc52d91cb0e375b1864a49ccf6 hat Code entfernt, der nicht
entfernt werden sollte. Ist jetzt wieder hinzugekommen, allerdings
mit einer kleinen Schönheitskorrektur.

SL/AM.pm

index fc15f19..af2c25f 100644 (file)
--- 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} = "";