From b611a6fdf01de12d1f9bc993d4c4faa640521f92 Mon Sep 17 00:00:00 2001 From: hufangzhou <746775970@qq.com> Date: Wed, 18 Nov 2020 08:52:50 +0800 Subject: [PATCH] * Finish task#8401. --- module/product/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/product/model.php b/module/product/model.php index 7b0b98a576..21025e39cf 100644 --- a/module/product/model.php +++ b/module/product/model.php @@ -519,7 +519,7 @@ class productModel extends model ->data($product) ->autoCheck() ->batchCheck($this->config->product->edit->requiredFields , 'notempty') - ->checkIF(strlen($product->code) == 0, 'code', 'notempty') //the value of product code can be 0 or 00.0 + ->checkIF(strlen($product->code) == 0, 'code', 'notempty') // The value of product code can be 0 or 00.0. ->check('name', 'unique', "id NOT " . helper::dbIN($data->productIDList) . " and deleted='0'") ->check('code', 'unique', "id NOT " . helper::dbIN($data->productIDList) . " and deleted='0'") ->where('id')->eq($productID)