]> wagnertech.de Git - mfinanz.git/blobdiff - SL/AM.pm
disable_one_time_config: Transaktionssicher (Testcode entfernt!)
[mfinanz.git] / SL / AM.pm
index a8a6d3d7d895fdd85e9c40f592fd027502c2a875..e48f55ac361ba890d0e412e5ce4a2b110319f254 100644 (file)
--- a/SL/AM.pm
+++ b/SL/AM.pm
@@ -114,7 +114,7 @@ sub get_account {
     }
 
     # get new accounts (Folgekonto). Find all charts with the same link
-    $form->{NEWACCOUNT} = $chart_obj->db->dbh->selectall_arrayref('select id, accno,description from chart where link = ? order by accno', {Slice => {}}, $chart_obj->link);
+    $form->{NEWACCOUNT} = $chart_obj->db->dbh->selectall_arrayref('select id, accno,description from chart where link = ? and id != ? order by accno', {Slice => {}}, $chart_obj->link, $form->{id});
 
   } else { # set to orphaned for new charts, so chart_type can be changed (needed by $AccountIsPosted)
     $form->{orphaned} = 1;