From d1a3f7e8697142027cd9bdc480fb42a12ef93c3a Mon Sep 17 00:00:00 2001 From: Yagami Date: Mon, 22 May 2023 16:03:00 +0800 Subject: [PATCH] * Code for activate product bug. --- module/product/model.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/product/model.php b/module/product/model.php index fc90ac2c8e..7305c3823c 100755 --- a/module/product/model.php +++ b/module/product/model.php @@ -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();