From 41293e59a4d58f5dc80d9263bb55972be843961b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Wed, 12 Oct 2011 17:03:07 +0200 Subject: [PATCH] =?utf8?q?Nachschlag=20zu=20commit:=20066fbb38fb409c5801b7?= =?utf8?q?0fc7d43f4e9190d295ff=20Entsprechend=20schon=20beim=20ersten=20Sp?= =?utf8?q?eichern=20des=20Artikels=20die=20ausgew=C3=A4hlte=20Einheit=20sc?= =?utf8?q?hreiben=20und=20kein=20leeres=20Textfeld.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/IC.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.20.1