From d81e668564e9626c43ae4760acd09179b1bfba7a Mon Sep 17 00:00:00 2001 From: sunguangming Date: Sat, 6 Jul 2024 05:48:23 +0000 Subject: [PATCH] * [bug#51837,done,0.1h] fix bug. --- module/story/control.php | 2 +- module/story/lang/de.php | 1 + module/story/lang/en.php | 1 + module/story/lang/fr.php | 1 + module/story/lang/zh-cn.php | 1 + 5 files changed, 5 insertions(+), 1 deletion(-) diff --git a/module/story/control.php b/module/story/control.php index 0ced9c6325..8ae275dec9 100755 --- a/module/story/control.php +++ b/module/story/control.php @@ -143,7 +143,7 @@ class story extends control $_POST = $result['data']; $stories = $this->storyZen->buildStoriesForBatchCreate($productID, $storyType); - if(empty($stories)) return $this->sendError($this->lang->error->noData, true); + if(empty($stories)) return $this->sendError($this->lang->story->errorEmptyStory, true); if(dao::isError()) return $this->sendError(dao::getError(), true); $storyIdList = $this->story->batchCreate($stories); diff --git a/module/story/lang/de.php b/module/story/lang/de.php index 0a4d1e3341..693748298b 100644 --- a/module/story/lang/de.php +++ b/module/story/lang/de.php @@ -358,6 +358,7 @@ $lang->story->errorCannotSplit = "This requirement has been split into sub $lang->story->errorParentSplitTask = "Parent requirements cannot be transferred to tasks, this operation has been filtered."; $lang->story->errorERURSplitTask = "Parent requirements,{$lang->ERCommon} and {$lang->URCommon}cannot be transferred to tasks, this operation has been filtered."; $lang->story->errorEmptyReviewedBy = "『{$lang->story->reviewers}』darf nicht leer sein."; +$lang->story->errorEmptyStory = "There has same title story or null title story, please check it."; $lang->story->mustChooseResult = 'Ergebnis wählen'; $lang->story->mustChoosePreVersion = 'Version wählen um es umzukhren.'; $lang->story->noEpic = "No Epics."; diff --git a/module/story/lang/en.php b/module/story/lang/en.php index 5418c65841..4ff43e2f86 100644 --- a/module/story/lang/en.php +++ b/module/story/lang/en.php @@ -358,6 +358,7 @@ $lang->story->errorCannotSplit = "This requirement has been split into sub $lang->story->errorParentSplitTask = "Parent requirements cannot be transferred to tasks, this operation has been filtered."; $lang->story->errorERURSplitTask = "Parent requirements,{$lang->ERCommon} and {$lang->URCommon}cannot be transferred to tasks, this operation has been filtered."; $lang->story->errorEmptyReviewedBy = "『{$lang->story->reviewers}』canot be blank."; +$lang->story->errorEmptyStory = "There has same title story or null title story, please check it."; $lang->story->mustChooseResult = 'Select Result'; $lang->story->mustChoosePreVersion = 'Select a version to revert to.'; $lang->story->noEpic = "No Epics."; diff --git a/module/story/lang/fr.php b/module/story/lang/fr.php index c3d3d48d23..303996cd43 100644 --- a/module/story/lang/fr.php +++ b/module/story/lang/fr.php @@ -358,6 +358,7 @@ $lang->story->errorCannotSplit = "This requirement has been split into sub $lang->story->errorParentSplitTask = "Parent requirements cannot be transferred to tasks, this operation has been filtered."; $lang->story->errorERURSplitTask = "Parent requirements,{$lang->ERCommon} and {$lang->URCommon}cannot be transferred to tasks, this operation has been filtered."; $lang->story->errorEmptyReviewedBy = "『{$lang->story->reviewers}』canot be blank."; +$lang->story->errorEmptyStory = "There has same title story or null title story, please check it."; $lang->story->mustChooseResult = 'Sélect Résultat'; $lang->story->mustChoosePreVersion = 'Sélect une version pour revenir en arrière.'; $lang->story->noEpic = "No Epics."; diff --git a/module/story/lang/zh-cn.php b/module/story/lang/zh-cn.php index c6a03159ec..69112d66b3 100644 --- a/module/story/lang/zh-cn.php +++ b/module/story/lang/zh-cn.php @@ -358,6 +358,7 @@ $lang->story->errorCannotSplit = "该需求已拆分此类型的子需求 $lang->story->errorParentSplitTask = "父需求不能转任务,本次操作已过滤。"; $lang->story->errorERURSplitTask = "父需求、{$lang->ERCommon}、{$lang->URCommon}不能转任务,本次操作已过滤。"; $lang->story->errorEmptyReviewedBy = "『{$lang->story->reviewers}』不能为空。"; +$lang->story->errorEmptyStory = "已有相同标题的需求或标题为空,请检查输入。"; $lang->story->mustChooseResult = '必须选择评审意见'; $lang->story->mustChoosePreVersion = '必须选择回溯的版本'; $lang->story->noEpic = "暂时没有{$lang->ERCommon}。";