From 55e8daa8caea44bf73bfa1a7e785394f5c4b7e8b Mon Sep 17 00:00:00 2001 From: tianshujie Date: Wed, 22 May 2024 10:37:32 +0800 Subject: [PATCH] * Fix bug #49996. --- module/execution/ui/create.field.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/execution/ui/create.field.php b/module/execution/ui/create.field.php index 612f2ddffa..18ebcc8922 100644 --- a/module/execution/ui/create.field.php +++ b/module/execution/ui/create.field.php @@ -17,9 +17,9 @@ $fields->field('project') ->items(data('allProjects')) ->value(data('projectID')); -if(!empty($project->model) and in_array($project->model, array('agileplus', 'ipd', 'waterfallplus'))) +if(!empty($project->model) and $project->model == 'agileplus') { - if($project->model == 'agileplus' ) unset($lang->execution->typeList['stage'], $lang->execution->typeList['']); + unset($lang->execution->typeList['stage'], $lang->execution->typeList['']); $fields->field('method') ->required() ->name('type')