From 7d52ebe6fad400f4668d030dabb8892c016557ae Mon Sep 17 00:00:00 2001 From: Niclas Zimmermann Date: Tue, 2 Apr 2013 10:55:08 +0200 Subject: [PATCH] Fehler beim Anlegen eines Kontos MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Durch einen NOT NULL Constraint für chart.link ist ein Fehler beim Anlegen neuer Konten entstanden. Behebt Bug #2223. --- SL/AM.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SL/AM.pm b/SL/AM.pm index 591f580b7..407fc487c 100644 --- a/SL/AM.pm +++ b/SL/AM.pm @@ -265,8 +265,8 @@ sub save_account { if (!$form->{id} || $form->{id} eq "") { $query = qq|SELECT nextval('id')|; ($form->{"id"}) = selectrow_query($form, $dbh, $query); - $query = qq|INSERT INTO chart (id, accno) VALUES (?, ?)|; - do_query($form, $dbh, $query, $form->{"id"}, $form->{"accno"}); + $query = qq|INSERT INTO chart (id, accno, link) VALUES (?, ?, ?)|; + do_query($form, $dbh, $query, $form->{"id"}, $form->{"accno"}, ''); } @values = (); -- 2.20.1