Merge branch 'sprint/208_tianshujie_58554' into 'master'
Sprint/208 tianshujie 58554 See merge request easycorp/zentaopms!4317
This commit is contained in:
@@ -676,14 +676,17 @@ class custom extends control
|
||||
$account = $this->app->user->account;
|
||||
if($this->server->request_method == 'POST')
|
||||
{
|
||||
$fields = $this->post->fields;
|
||||
$fields = $this->post->fields;
|
||||
if(is_array($fields)) $fields = join(',', $fields);
|
||||
$this->loadModel('setting')->setItem("$account.$module.$section.$key", $fields);
|
||||
if(in_array($module, array('task', 'testcase', 'story')) and $section == 'custom' and in_array($key, array('createFields', 'batchCreateFields'))) return;
|
||||
if($module == 'bug' and $section == 'custom' and $key == 'batchCreateFields') return;
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->loadModel('setting')->deleteItems("owner=$account&module=$module§ion=$section&key=$key");
|
||||
}
|
||||
|
||||
return print(js::reload('parent'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user