summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-11-05 19:15:49 +0000
committertetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-11-05 19:15:49 +0000
commit299774140c2c1852e0ac20556c6226510f4ec6d3 (patch)
tree80c7104218a4057adc8aed7f09cc98affd5b3a14
parent7b68b7574abeaa9091a0d435c144d44a8399f40c (diff)
Add $parts_id to query in add_items_required
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1854 4979c152-3d1c-0410-bac9-87ea11338e46
-rw-r--r--LedgerSMB/OE.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/LedgerSMB/OE.pm b/LedgerSMB/OE.pm
index c6b9e960..e274cc03 100644
--- a/LedgerSMB/OE.pm
+++ b/LedgerSMB/OE.pm
@@ -2207,7 +2207,7 @@ sub add_items_required {
JOIN parts p ON (p.id = a.parts_id)
WHERE a.id = ?|;
$sth = $dbh->prepare($query);
- $sth->execute || $form->dberror($query);
+ $sth->execute($parts_id) || $form->dberror($query);
while ( $ref = $sth->fetchrow_hashref(NAME_lc) ) {
$form->db_parse_numeric(sth=> $sth, hashref=> $ref);