From f51ec4d003d15645ff68e1018df37f669510bc09 Mon Sep 17 00:00:00 2001 From: tanghucheng Date: Tue, 12 Mar 2024 11:14:56 +0800 Subject: [PATCH] * Fix bug #46797. --- module/execution/control.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/module/execution/control.php b/module/execution/control.php index 2b2a5bdd01..27763828e0 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -1722,12 +1722,15 @@ class execution extends control $lang->execution->typeList['sprint'] = $executionCommonLang; } - elseif(!empty($project) and ($project->model == 'waterfall' or $project->model == 'waterfallplus')) + elseif(!empty($project) and (in_array($project->model, array('waterfall', 'waterfallplus', 'ipd')))) { global $lang; - $lang->executionCommon = $lang->execution->stage; + if($type == 'stage') + { + $lang->executionCommon = $lang->execution->stage; + $lang->execution->common = $lang->execution->stage; + } include $this->app->getModulePath('', 'execution') . 'lang/' . $this->app->getClientLang() . '.php'; - $this->config->execution->create->requiredFields .= ',products0'; }