* Adjust execution batch edit fields setting.
This commit is contained in:
@@ -8,8 +8,9 @@ $config->execution->ownerFields = array('PO', 'PM', 'QD', 'RD');
|
||||
$config->execution->defaultBurnPeriod = 30;
|
||||
|
||||
$config->execution->list = new stdclass();
|
||||
$config->execution->list->exportFields = 'id,name,projectName,PM,begin,end,status,estimate,consumed,left,progress';
|
||||
$config->execution->list->customCreateFields = '';
|
||||
$config->execution->list->exportFields = 'id,name,projectName,PM,begin,end,status,estimate,consumed,left,progress';
|
||||
$config->execution->list->customCreateFields = '';
|
||||
$config->execution->list->customBatchEditFields = 'days,type,teamName,desc,PO,QD,PM,RD';
|
||||
|
||||
$config->execution->modelList['scrum'] = 'sprint';
|
||||
$config->execution->modelList['waterfall'] = 'stage';
|
||||
@@ -33,8 +34,6 @@ $config->execution->edit->requiredFields = 'name,begin,end';
|
||||
$config->execution->start->requiredFields = 'realBegan';
|
||||
$config->execution->close->requiredFields = 'realEnd';
|
||||
|
||||
$config->execution->customBatchEditFields = 'days,type,teamName,desc,PO,QD,PM,RD';
|
||||
|
||||
$config->execution->custom = new stdclass();
|
||||
$config->execution->custom->batchEditFields = 'days,PM';
|
||||
|
||||
|
||||
@@ -1235,7 +1235,7 @@ class execution extends control
|
||||
$this->project->setMenu($projectID);
|
||||
$this->view->project = $project;
|
||||
if($project->model == 'waterfall' or $project->model == 'waterfallplus') $this->lang->execution->common = $this->lang->execution->stage;
|
||||
if($project->model == 'ipd') $this->config->execution->customBatchEditFields = 'days,teamname,desc,PO,QD,PM,RD';
|
||||
if($project->model == 'ipd') $this->config->execution->list->customBatchEditFields = 'days,teamname,desc,PO,QD,PM,RD';
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1257,7 +1257,7 @@ class execution extends control
|
||||
list($pmUsers, $poUsers, $qdUsers, $rdUsers) = $this->executionZen->setUserMoreLink($executions);
|
||||
|
||||
/* Set custom fields. */
|
||||
foreach(explode(',', $this->config->execution->customBatchEditFields) as $field) $customFields[$field] = str_replace($this->lang->executionCommon, $this->lang->execution->common, $this->lang->execution->$field);
|
||||
foreach(explode(',', $this->config->execution->list->customBatchEditFields) as $field) $customFields[$field] = str_replace($this->lang->executionCommon, $this->lang->execution->common, $this->lang->execution->$field);
|
||||
|
||||
$this->view->customFields = $customFields;
|
||||
$this->view->showFields = $this->config->execution->custom->batchEditFields;
|
||||
|
||||
Reference in New Issue
Block a user