* [task#130244,doing,0.4h] add custom::project.
This commit is contained in:
@@ -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'));
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user