From cd96e0755c449d408657785922a05b702d3d0cad Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Fri, 9 Nov 2018 15:52:07 +0100 Subject: [PATCH] Kontoeinstellungen: Folgekonto kann nicht das Konto selbst sein. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit behebt #329 "Konto mit identischem Folgekonto führt zu Endlosschlaufe" --- SL/AM.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/AM.pm b/SL/AM.pm index a8a6d3d7d..e48f55ac3 100644 --- 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; -- 2.20.1