* Code for activate product bug.

This commit is contained in:
Yagami
2023-05-22 16:03:00 +08:00
parent 3fb95422d4
commit d1a3f7e869
+1
View File
@@ -985,6 +985,7 @@ class productModel extends model
{
$oldProduct = $this->getById($productID);
$product = (object)array('status' => 'normal');
if($this->config->vision == 'or') $product->status = 'wait';
$this->dao->update(TABLE_PRODUCT)->data($product)->where('id')->eq((int)$productID)->exec();