From 9d1157c813455e97e8445aa5be5faa374eab3832 Mon Sep 17 00:00:00 2001 From: tianshujie98 Date: Thu, 25 Feb 2021 10:54:02 +0800 Subject: [PATCH] * Fix bug. --- module/program/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } }