[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb: [1853] branches/1.2/LedgerSMB/OE.pm
- Subject: SF.net SVN: ledger-smb: [1853] branches/1.2/LedgerSMB/OE.pm
- From: ..hidden..
- Date: Mon, 05 Nov 2007 11:14:40 -0800
Revision: 1853
http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=1853&view=rev
Author: tetragon
Date: 2007-11-05 11:14:39 -0800 (Mon, 05 Nov 2007)
Log Message:
-----------
Add missing $parts_id to query in add_items_required
Modified Paths:
--------------
branches/1.2/LedgerSMB/OE.pm
Modified: branches/1.2/LedgerSMB/OE.pm
===================================================================
--- branches/1.2/LedgerSMB/OE.pm 2007-11-05 15:54:35 UTC (rev 1852)
+++ branches/1.2/LedgerSMB/OE.pm 2007-11-05 19:14:39 UTC (rev 1853)
@@ -2207,9 +2207,9 @@
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) ) {
+ while ( $ref = $sth->fetchrow_hashref('NAME_lc') ) {
$form->db_parse_numeric(sth=> $sth, hashref=> $ref);
&add_items_required( "", $dbh, $form, $ref->{id},
$required * $ref->{qty},
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.