From: Jan Büren Date: Wed, 12 Oct 2011 15:03:07 +0000 (+0200) Subject: Nachschlag zu commit: 066fbb38fb409c5801b70fc7d43f4e9190d295ff Entsprechend schon... X-Git-Tag: release-2.7.0beta1~230^2 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=41293e59a4d58f5dc80d9263bb55972be843961b;p=kivitendo-erp.git Nachschlag zu commit: 066fbb38fb409c5801b70fc7d43f4e9190d295ff Entsprechend schon beim ersten Speichern des Artikels die ausgewählte Einheit schreiben und kein leeres Textfeld. --- diff --git a/SL/IC.pm b/SL/IC.pm index e3b33d7c7..82b43cd4c 100644 --- a/SL/IC.pm +++ b/SL/IC.pm @@ -362,7 +362,7 @@ sub save { $form->{partnumber} ||= $trans_number->create_unique; ($form->{id}) = selectrow_query($form, $dbh, qq|SELECT nextval('id')|); - do_query($form, $dbh, qq|INSERT INTO parts (id, partnumber, unit) VALUES (?, ?, '')|, $form->{id}, $form->{partnumber}); + do_query($form, $dbh, qq|INSERT INTO parts (id, partnumber, unit) VALUES (?, ?, ?)|, $form->{id}, $form->{partnumber}, $form->{unit}); $form->{orphaned} = 1; }