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