From b3b3a4884be65b8a2eed40a7b2eb50c50ceabbb1 Mon Sep 17 00:00:00 2001 From: tanghucheng Date: Thu, 25 Apr 2024 11:00:11 +0800 Subject: [PATCH] * Fix bug #48415. --- module/programplan/zen.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/module/programplan/zen.php b/module/programplan/zen.php index 5976c0161d..87cb3443e5 100644 --- a/module/programplan/zen.php +++ b/module/programplan/zen.php @@ -90,10 +90,9 @@ class programplanZen extends programplan } $customKey = 'create' . ucfirst($project->model) . 'Fields'; - if(strpos(",{$this->config->programplan->custom->$customKey},", ',percent,') === false) unset($plan->percent); + if(strpos(",{$this->config->programplan->custom->$customKey},", ',percent,') === false) $totalPercent += $plan->percent; - $totalPercent += $plan->percent; - $names[] = $plan->name; + $names[] = $plan->name; if(!empty($plan->code)) $codes[] = $plan->code; $this->checkLegallyDate($plan, $project, !empty($parentStage) ? $parentStage : null);