diff --git a/module/story/lang/de.php b/module/story/lang/de.php index e2cca57ca8..249ead14ba 100644 --- a/module/story/lang/de.php +++ b/module/story/lang/de.php @@ -255,6 +255,7 @@ $lang->story->noStory = 'Keine Storys. '; $lang->story->ignoreChangeStage = 'Story %s is in Draft or Closed status. Please review it..'; $lang->story->cannotDeleteParent = "Can not delete parent {$lang->storyCommon}"; $lang->story->moveChildrenTips = "Its Child {$lang->storyCommon} will be moved to the selected product when editing the linked product of Parent {$lang->storyCommon}."; +$lang->story->changeBranchTips = "Its Child {$lang->storyCommon} will be moved to the selected branch when editing the linked branch of Parent {$lang->storyCommon}."; $lang->story->changeTips = 'The story associated with the requirements to change, click "Cancel" ignore this change, click "Confirm" to change the story.'; $lang->story->form = new stdclass(); diff --git a/module/story/lang/en.php b/module/story/lang/en.php index 61d50c95c3..6032a105da 100644 --- a/module/story/lang/en.php +++ b/module/story/lang/en.php @@ -255,6 +255,7 @@ $lang->story->noStory = 'No stories yet. '; $lang->story->ignoreChangeStage = 'Story %s is in Draft or Closed status. Please review it..'; $lang->story->cannotDeleteParent = "Can not delete parent {$lang->storyCommon}"; $lang->story->moveChildrenTips = "Its Child {$lang->storyCommon} will be moved to the selected product when editing the linked product of Parent {$lang->storyCommon}."; +$lang->story->changeBranchTips = "Its Child {$lang->storyCommon} will be moved to the selected branch when editing the linked branch of Parent {$lang->storyCommon}."; $lang->story->changeTips = 'The story associated with the requirements to change, click "Cancel" ignore this change, click "Confirm" to change the story.'; $lang->story->form = new stdclass(); diff --git a/module/story/lang/fr.php b/module/story/lang/fr.php index b527b53e19..2eb23bf67b 100644 --- a/module/story/lang/fr.php +++ b/module/story/lang/fr.php @@ -255,6 +255,7 @@ $lang->story->noStory = "Aucune story pour l'instant. "; $lang->story->ignoreChangeStage = 'Story %s is in Draft or Closed status. Please review it..'; $lang->story->cannotDeleteParent = "Impossible de supprimer {$lang->storyCommon} parent"; $lang->story->moveChildrenTips = "Its Child {$lang->storyCommon} will be moved to the selected product when editing the linked product of Parent {$lang->storyCommon}."; +$lang->story->changeBranchTips = "Its Child {$lang->storyCommon} will be moved to the selected branch when editing the linked branch of Parent {$lang->storyCommon}."; $lang->story->changeTips = 'The story associated with the requirements to change, click "Cancel" ignore this change, click "Confirm" to change the story.'; $lang->story->form = new stdclass(); diff --git a/module/story/lang/vi.php b/module/story/lang/vi.php index 3afb40c529..1a02f60615 100644 --- a/module/story/lang/vi.php +++ b/module/story/lang/vi.php @@ -255,6 +255,7 @@ $lang->story->noStory = 'Không có câu chuyện nào'; $lang->story->ignoreChangeStage = 'Story %s is in Draft or Closed status. Please review it..'; $lang->story->cannotDeleteParent = "Không thể xóa {$lang->storyCommon} mẹ"; $lang->story->moveChildrenTips = "Its Child {$lang->storyCommon} will be moved to the selected product when editing the linked product of Parent {$lang->storyCommon}."; +$lang->story->changeBranchTips = "Its Child {$lang->storyCommon} will be moved to the selected branch when editing the linked branch of Parent {$lang->storyCommon}."; $lang->story->changeTips = 'The story associated with the requirements to change, click "Cancel" ignore this change, click "Confirm" to change the story.'; $lang->story->form = new stdclass(); diff --git a/module/story/lang/zh-cn.php b/module/story/lang/zh-cn.php index 09a703c750..56aa0be477 100644 --- a/module/story/lang/zh-cn.php +++ b/module/story/lang/zh-cn.php @@ -255,6 +255,7 @@ $lang->story->noStory = "暂时没有{$lang->storyCommon}。"; $lang->story->ignoreChangeStage = "{$lang->storyCommon} %s 为草稿状态或已关闭状态,没有修改其阶段。"; $lang->story->cannotDeleteParent = "不能删除父{$lang->storyCommon}"; $lang->story->moveChildrenTips = "修改父{$lang->storyCommon}的所属产品会将其下的子{$lang->storyCommon}也移动到所选产品下。"; +$lang->story->changeBranchTips = "修改父{$lang->storyCommon}的所属分支会将其下的子{$lang->storyCommon}也移动到所选分支下。"; $lang->story->changeTips = '该软件需求关联的用户需求有变更,点击“不变更”忽略此条变更,点击“变更”来进行该软件需求的变更。'; $lang->story->form = new stdclass(); diff --git a/module/story/lang/zh-tw.php b/module/story/lang/zh-tw.php index 26eeea5c62..129359811c 100644 --- a/module/story/lang/zh-tw.php +++ b/module/story/lang/zh-tw.php @@ -228,6 +228,7 @@ $lang->story->noStory = "暫時沒有{$lang->storyCommon}。"; $lang->story->ignoreChangeStage = "{$lang->storyCommon} %s 為草稿狀態或已關閉狀態,沒有修改其階段。"; $lang->story->cannotDeleteParent = "不能刪除父{$lang->storyCommon}"; $lang->story->moveChildrenTips = "修改父{$lang->storyCommon}的所屬產品會將其下的子{$lang->storyCommon}也移動到所選產品下。"; +$lang->story->changeBranchTips = "修改父{$lang->storyCommon}的所屬分支會將其下的子{$lang->storyCommon}也移動到所選分支下。"; $lang->story->form = new stdclass(); $lang->story->form->area = "該{$lang->storyCommon}所屬範圍"; diff --git a/module/story/model.php b/module/story/model.php index fa8d305142..0690ad9e85 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -676,6 +676,11 @@ class storyModel extends model } } + if($oldStory->parent == '-1' and $story->branch != $oldStory->branch) + { + $this->dao->update(TABLE_STORY)->set('branch')->eq($story->branch)->where('parent')->eq($storyID)->exec(); + } + $this->loadModel('action'); $changed = $story->parent != $oldStory->parent; if($oldStory->parent > 0) diff --git a/module/story/view/edit.html.php b/module/story/view/edit.html.php index 75cc7f4ec5..d9d007a766 100644 --- a/module/story/view/edit.html.php +++ b/module/story/view/edit.html.php @@ -12,8 +12,10 @@ ?> product);?> +branch);?> children));?> story->moveChildrenTips);?> +story->changeBranchTips);?>