projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2ab888
)
Fehler beim Anlegen eines Kontos
author
Niclas Zimmermann
<niclas@kivitendo-premium.de>
Tue, 2 Apr 2013 08:55:08 +0000
(10:55 +0200)
committer
Niclas Zimmermann
<niclas@kivitendo-premium.de>
Tue, 2 Apr 2013 08:57:47 +0000
(10:57 +0200)
Durch einen NOT NULL Constraint für chart.link ist ein Fehler beim
Anlegen neuer Konten entstanden.
Behebt Bug #2223.
SL/AM.pm
patch
|
blob
|
history
diff --git
a/SL/AM.pm
b/SL/AM.pm
index
591f580
..
407fc48
100644
(file)
--- 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 = ();