* Fix bug #47758, unset percent when disabled.

This commit is contained in:
tanghucheng
2024-04-25 17:09:30 +08:00
committed by caoyanyi
parent e09bda5cfe
commit 5b6f7fe8bb
+1 -1
View File
@@ -90,7 +90,7 @@ class programplanZen extends programplan
}
$customKey = 'create' . ucfirst($project->model) . 'Fields';
if(strpos(",{$this->config->programplan->$customKey},", ',percent,') === false) $plan->percent = 0;
if(strpos(",{$this->config->programplan->custom->$customKey},", ',percent,') === false) unset($plan->percent);
$totalPercent += $plan->percent;
$names[] = $plan->name;