* [bug#67262] Fix the bug of create programplan.

This commit is contained in:
xieqiyu
2025-11-14 06:54:40 +00:00
parent db3e56f4a3
commit 7aec54fcc3
4 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -208,7 +208,7 @@ $fnGenerateDefaultData = function() use ($config, $plans, $planID, $stages, $exe
$item = new stdClass();
$item->name = $stage->name;
$item->code = isset($stage->code) ? $stage->code : '';
$item->percent = $stage->percent;
$item->percent = $stage->percent ?: 0;
$item->attribute = $stage->type;
$item->acl = 'open';
$item->milestone = 0;
@@ -235,7 +235,7 @@ $fnGenerateDefaultData = function() use ($config, $plans, $planID, $stages, $exe
$item->code = $plan->code;
$item->PM = $plan->PM;
$item->status = $plan->status;
$item->percent = $plan->percent;
$item->percent = $plan->percent ?: 0;
$item->attribute = $plan->attribute;
$item->acl = $plan->acl;
$item->milestone = $plan->milestone;
+1 -1
View File
@@ -75,7 +75,7 @@ formPanel
set::value($plan->PM),
)
),
isset($config->setPercent) && $config->setPercent == 1 && $project->model != 'research' ? formGroup
isset($config->setPercent) && $config->setPercent == 1 && !in_array($project->model, array('research', 'ipd')) ? formGroup
(
set::label($lang->programplan->percent),
set::width('2/3'),