* [task#140627,done,0.2h] fix bug.

This commit is contained in:
sunguangming
2025-04-03 14:23:29 +08:00
committed by 刘刚
parent 3d8a82e5eb
commit e5c1bbee20
5 changed files with 10 additions and 1 deletions
+1
View File
@@ -340,6 +340,7 @@ $lang->task->error->endLtExecution = "The 'Deadline' of the task must be grea
$lang->task->error->dateExceed = "Because the scheduled date of task %s exceeds the scheduled date of {$lang->execution->common}, it is automatically changed to the scheduled date of {$lang->execution->common}";
$lang->task->error->length = "Length exceeds the limit of %d characters, cannot be saved. Please modify it again.";
$lang->task->error->emptyParentName = "Contains subtasks, task names cannot be empty.";
$lang->task->error->noTestTask = "Please select at least one {$lang->SRCommon}.";
/* Report. */
$lang->task->report = new stdclass();
+1
View File
@@ -340,6 +340,7 @@ $lang->task->error->endLtExecution = "The 'Deadline' of the task must be grea
$lang->task->error->dateExceed = "Because the scheduled date of task %s exceeds the scheduled date of {$lang->execution->common}, it is automatically changed to the scheduled date of {$lang->execution->common}";
$lang->task->error->length = "Length exceeds the limit of %d characters, cannot be saved. Please modify it again.";
$lang->task->error->emptyParentName = "Contains subtasks, task names cannot be empty.";
$lang->task->error->noTestTask = "Please select at least one {$lang->SRCommon}.";
/* Report. */
$lang->task->report = new stdclass();
+1
View File
@@ -340,6 +340,7 @@ $lang->task->error->endLtExecution = "The 'Deadline' of the task must be grea
$lang->task->error->dateExceed = "Because the scheduled date of task %s exceeds the scheduled date of {$lang->execution->common}, it is automatically changed to the scheduled date of {$lang->execution->common}";
$lang->task->error->length = "Length exceeds the limit of %d characters, cannot be saved. Please modify it again.";
$lang->task->error->emptyParentName = "Contains subtasks, task names cannot be empty.";
$lang->task->error->noTestTask = "Please select at least one {$lang->SRCommon}.";
/* Report. */
$lang->task->report = new stdclass();
+1 -1
View File
@@ -340,7 +340,7 @@ $lang->task->error->endLtExecution = "任务截止日期应大于等于%s的
$lang->task->error->dateExceed = "任务%s的计划日期超过该{$lang->execution->common}计划日期,将自动改为{$lang->execution->common}的计划日期。";
$lang->task->error->length = "长度超过了%d个字符,无法保存,请修改后再试";
$lang->task->error->emptyParentName = "包含子任务,任务名称不能为空。";
$lang->task->error->noTestTask = "请至少选择一个{$lang->SRCommon}。";
/* Report. */
$lang->task->report = new stdclass();
$lang->task->report->common = '报表';
+6
View File
@@ -1172,6 +1172,12 @@ class taskZen extends task
*/
protected function checkCreateTestTasks(array $tasks): bool
{
if(empty($tasks))
{
dao::$errors[] = $this->lang->task->error->noTestTask;
return false;
}
foreach($tasks as $rowID => $task)
{
$index = $rowID + 1;