diff --git a/module/program/model.php b/module/program/model.php index 9f6f7a52bf..53036f9182 100644 --- a/module/program/model.php +++ b/module/program/model.php @@ -1745,7 +1745,7 @@ class programModel extends model { foreach($_POST['products'] as $productID => $product) { - $this->dao->update(TABLE_PRODUCT)->set('program')->eq($newTopPGM)->where('id')->eq((int)$productID)->exec(); + $this->dao->update(TABLE_PRODUCT)->set('program')->eq((int)$newTopPGM)->where('id')->eq((int)$productID)->exec(); } }