From f823f164db272fcce9cf7e305727cb4c696b5f2d Mon Sep 17 00:00:00 2001 From: wangyidong Date: Thu, 28 Nov 2024 13:30:49 +0800 Subject: [PATCH] * [refac bug #57537] Adjust code for check has child task when batch create task. --- module/task/js/batchcreate.ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/task/js/batchcreate.ui.js b/module/task/js/batchcreate.ui.js index fcab0e2a71..dadec452bf 100644 --- a/module/task/js/batchcreate.ui.js +++ b/module/task/js/batchcreate.ui.js @@ -274,6 +274,6 @@ window.handleRenderRow = function($row, index) /* 创建隐藏表单域用于向服务器提交当前行层级信息。 */ $row.find(nestedTextSelector).attr('title', text).text(text).append(``); $row.find('.form-batch-col-actions').addClass('is-pinned'); - if($prevRow.length && $prevRow.attr('data-level') == level) $prevRow.find('input[data-name="estimate"]').prop('readonly', false); // 如果没有子任务,重置预计字段的可编辑状态。 + if($prevRow.length && $prevRow.attr('data-level') >= level) $prevRow.find('input[data-name="estimate"]').prop('readonly', false); // 如果没有子任务,重置预计字段的可编辑状态。 if(edition == 'open' && (level > 0 || parentID)) $row.find('button[data-type=addSub]').attr('disabled', 'disabled'); };