summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xLedgerSMB/IS.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/LedgerSMB/IS.pm b/LedgerSMB/IS.pm
index c192c255..97f894e4 100755
--- a/LedgerSMB/IS.pm
+++ b/LedgerSMB/IS.pm
@@ -1022,7 +1022,7 @@ sub post_invoice {
FROM parts p
JOIN assembly a
ON (a.parts_id = p.id)
- WHERE a.id = $form->{"id_$i"}
+ WHERE a.id = ?
GROUP BY p.assembly|;
$sth = $dbh->prepare($query);
$sth->execute( $form->{"id_$i"} )