From 864ed7a391ff7b629030cf8168ab65245238fbf9 Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Tue, 15 Nov 2022 09:04:14 +0800 Subject: [PATCH] * Fix bug#29445. --- module/task/js/create.js | 2 +- module/task/view/create.html.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/module/task/js/create.js b/module/task/js/create.js index 36e63a45ff..0dcd61d073 100644 --- a/module/task/js/create.js +++ b/module/task/js/create.js @@ -343,7 +343,7 @@ function setStories(moduleID, executionID) $("#story").addClass('filled').chosen(); /* If there is no story option, select will be hidden and text will be displayed; otherwise, the opposite is true */ - if($('#story option').length > 1) + if($('#story option').length > 1 || parseInt(hasProduct) == 0) { $('#story').parent().removeClass('hidden'); $('#storyBox').addClass('hidden'); diff --git a/module/task/view/create.html.php b/module/task/view/create.html.php index f66321ccb0..8e2f516d47 100644 --- a/module/task/view/create.html.php +++ b/module/task/view/create.html.php @@ -23,6 +23,7 @@ error->gt, $lang->task->estimate, '0'))?> lifetime);?> +hasProduct);?> task->create->requiredFields) as $field)