* Fix bug #48314.
This commit is contained in:
@@ -22,7 +22,7 @@ $customKey = 'createFields';
|
||||
$section = 'custom';
|
||||
|
||||
/* Generate custom config key by project model. */
|
||||
if(in_array($project->model, array('waterfallplus', 'ipd'))) $customKey = 'create' . ucfirst($project->model) . 'Fields';
|
||||
if(in_array($project->model, array('waterfallplus', 'ipd', 'waterfall'))) $customKey = 'create' . ucfirst($project->model) . 'Fields';
|
||||
if($executionType == 'agileplus')
|
||||
{
|
||||
$section = 'customAgilePlus';
|
||||
|
||||
@@ -89,7 +89,8 @@ class programplanZen extends programplan
|
||||
if(!empty($this->config->setCode) && empty($plan->code) && strpos(",{$this->config->execution->create->requiredFields},", ',code,') !== false) dao::$errors["code[{$rowID}]"] = sprintf($this->lang->error->notempty, $plan->type == 'stage' ? $this->lang->execution->code : $this->lang->code);
|
||||
}
|
||||
|
||||
if(strpos(",{$this->config->programplan->list->customCreateFields},", ',percent,') === false) $plan->percent = 0;
|
||||
$customKey = 'create' . ucfirst($project->model) . 'Fields';
|
||||
if(strpos(",{$this->config->programplan->$customKey},", ',percent,') === false) $plan->percent = 0;
|
||||
|
||||
$totalPercent += $plan->percent;
|
||||
$names[] = $plan->name;
|
||||
|
||||
Reference in New Issue
Block a user