Database error when inserting work order issues. Fixed
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Fri, 4 May 2007 07:42:06 +0000 (07:42 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Fri, 4 May 2007 07:42:06 +0000 (07:42 +0000)
CHANGELOG.txt
manufacturing/includes/db/work_order_issues_db.inc

index 55191e9c80cde5feb7837c19a4281798b4c29ff8..8cf61f6f4a633d24412b86cb797243736a780430 100644 (file)
@@ -19,6 +19,10 @@ Legend:
 ! -> Note
 $ -> Affected files
 
+04-May-2007 Joe Hunt
+ # Database error hen inserting work order issues. Fixed.
+ $ /manufacturing/includes/db/work_order_issues_db.inc
 03-May-2007 Joe Hunt
  # Multiple tables and JOIN's have syntax changes in MySQL 5.0.12. Need parentheses.
  $ /includes/db/manufacturing_db.inc
index 5bcfbad27ea0e4433fe798004f4458fdabf358e2..fcc6d6f5a6936aac110e13fea9c9991889be5d7d 100644 (file)
@@ -25,7 +25,7 @@ function add_work_order_issue($woid, $ref, $to_work_order, $items, $location, $w
     
        // insert the actual issue
        $sql = "INSERT INTO ".TB_PREF."wo_issues (workorder_id, reference, issue_date, loc_code, workcentre_id) 
-               VALUES ($WOID, '$ref', '" .
+               VALUES ($woid, '$ref', '" .
                date2sql($date_) . "', '$location', $workcentre)";
        db_query($sql,"The work order issue could not be added");