From c275df954f700c5629a18944a71a52e4fd8625cc Mon Sep 17 00:00:00 2001 From: Thomas Kasulke Date: Mon, 30 Apr 2007 13:16:15 +0000 Subject: [PATCH] =?utf8?q?INSERT=20an=20das=20popup=20angepasst=20(=20Bear?= =?utf8?q?beiter=20k=C3=B6nnen=20von=20jedem=20ausgew=C3=A4hlt=20werden.?= =?utf8?q?=20)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/IR.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SL/IR.pm b/SL/IR.pm index 3982b267e..fe10a299b 100644 --- a/SL/IR.pm +++ b/SL/IR.pm @@ -69,8 +69,7 @@ sub post_invoice { $uid = substr($uid, 2, 75); $query = qq|INSERT INTO ap (invnumber, employee_id) - VALUES ('$uid', (SELECT e.id FROM employee e - WHERE e.login = '$form->{login}'))|; + VALUES ('$uid', '$form->{employee}')|; $dbh->do($query) || $form->dberror($query); $query = qq|SELECT a.id FROM ap a -- 2.20.1