This commit is contained in:
tanghucheng
2024-04-25 17:04:39 +08:00
committed by caoyanyi
parent 23f286cfc2
commit 73edba5f4d
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -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';
+2 -1
View File
@@ -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;