From 16baa04f21463ec70b5d1d36624efb5c7c674411 Mon Sep 17 00:00:00 2001 From: dingguodong Date: Sat, 10 Jun 2023 15:58:05 +0800 Subject: [PATCH] * Change comment for CRProduct and CRExecution. --- module/common/model.php | 1 + module/custom/control.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/module/common/model.php b/module/common/model.php index e87164f1e0..27c126786f 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -3113,6 +3113,7 @@ EOF; if(empty($object)) return true; + /* Judge that if the closed object(product|execution) is readonly from config table. The default is can modify. */ if($type == 'product' and empty($config->CRProduct) and $object->status == 'closed') return false; if($type == 'execution' and empty($config->CRExecution) and $object->status == 'closed') return false; diff --git a/module/custom/control.php b/module/custom/control.php index f03210e453..f5c6ea0106 100644 --- a/module/custom/control.php +++ b/module/custom/control.php @@ -523,7 +523,7 @@ class custom extends control } /** - * Set whether the execution is read-only. + * Set whether the closed execution is read-only. * * @access public * @return void @@ -543,7 +543,7 @@ class custom extends control } /** - * Set whether the product is read-only. + * Set whether the closed product is read-only. * * @access public * @return void