From 625f91716cba4b910eae8ac6932ed844f4d85f4a Mon Sep 17 00:00:00 2001 From: liumengyi Date: Tue, 22 Oct 2024 13:27:31 +0800 Subject: [PATCH] * [task#130244,doing,0.4h] add custom::project. --- module/custom/config.php | 2 +- module/custom/control.php | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/module/custom/config.php b/module/custom/config.php index 7806203ed9..f54fd9b593 100644 --- a/module/custom/config.php +++ b/module/custom/config.php @@ -91,7 +91,7 @@ if(!empty($config->setCode)) $config->custom->fieldList['execution']['edit'] .= ',code'; } -$config->custom->notSetMethods = array('required', 'browsestoryconcept', 'product', 'role', 'execution', 'limitTaskDate', 'hours'); +$config->custom->notSetMethods = array('required', 'browsestoryconcept', 'product', 'role', 'execution', 'limitTaskDate', 'hours', 'project'); $config->custom->customFields = array(); $config->custom->customFields['common'] = array('global' => array('hideVisionTips')); diff --git a/module/custom/control.php b/module/custom/control.php index 5209e941a9..8a62b2f8e5 100644 --- a/module/custom/control.php +++ b/module/custom/control.php @@ -253,6 +253,26 @@ class custom extends control return $this->send(array('result' => 'success', 'load' => inlink('browseStoryConcept'))); } + /** + * 项目关闭设置。 + * Set whether the closed project is read-only. + * + * @access public + * @return void + */ + public function project() + { + if($_POST) + { + $this->loadModel('setting')->setItem("system.common.CRProject@{$this->config->vision}", $this->post->project); + return $this->sendSuccess(array('load' => true)); + } + + $this->view->title = $this->lang->projectCommon; + $this->view->module = 'project'; + $this->display(); + } + /** * 执行关闭设置。 * Set whether the closed execution is read-only.