* Finish task#74154,#74153.

This commit is contained in:
xieqiyu
2022-11-01 08:06:45 +00:00
parent d97b9f29d1
commit e80da381ba
6 changed files with 22 additions and 7 deletions
+3 -1
View File
@@ -475,7 +475,9 @@ $lang->story->featureBar['browse']['draft'] = $lang->story->statusList['draf
$lang->story->featureBar['browse']['reviewing'] = $lang->story->statusList['reviewing'];
$lang->story->operateList = array();
$lang->story->operateList['assigned'] = 'assigned';
$lang->story->operateList['assigned'] = 'assigned';
$lang->story->operateList['closed'] = 'closed';
$lang->story->operateList['activated'] = 'activated';
$lang->requirement->common = $lang->URCommon;
$lang->requirement->create = 'Create Requirement';
+3 -1
View File
@@ -475,7 +475,9 @@ $lang->story->featureBar['browse']['draft'] = $lang->story->statusList['draf
$lang->story->featureBar['browse']['reviewing'] = $lang->story->statusList['reviewing'];
$lang->story->operateList = array();
$lang->story->operateList['assigned'] = 'assigned';
$lang->story->operateList['assigned'] = 'assigned';
$lang->story->operateList['closed'] = 'closed';
$lang->story->operateList['activated'] = 'activated';
$lang->requirement->common = $lang->URCommon;
$lang->requirement->create = 'Create Requirement';
+3 -1
View File
@@ -475,7 +475,9 @@ $lang->story->featureBar['browse']['draft'] = $lang->story->statusList['draf
$lang->story->featureBar['browse']['reviewing'] = $lang->story->statusList['reviewing'];
$lang->story->operateList = array();
$lang->story->operateList['assigned'] = 'assigned';
$lang->story->operateList['assigned'] = 'assigned';
$lang->story->operateList['closed'] = 'closed';
$lang->story->operateList['activated'] = 'activated';
$lang->requirement->common = $lang->URCommon;
$lang->requirement->create = 'Create Requirement';
+3 -1
View File
@@ -463,4 +463,6 @@ $lang->story->featureBar['browse']['draft'] = $lang->story->statusList['draf
$lang->story->featureBar['browse']['reviewing'] = $lang->story->statusList['reviewing'];
$lang->story->operateList = array();
$lang->story->operateList['assigned'] = 'assigned';
$lang->story->operateList['assigned'] = 'assigned';
$lang->story->operateList['closed'] = 'closed';
$lang->story->operateList['activated'] = 'activated';
+3 -1
View File
@@ -475,7 +475,9 @@ $lang->story->featureBar['browse']['draft'] = $lang->story->statusList['draf
$lang->story->featureBar['browse']['reviewing'] = $lang->story->statusList['reviewing'];
$lang->story->operateList = array();
$lang->story->operateList['assigned'] = '指派';
$lang->story->operateList['assigned'] = '指派';
$lang->story->operateList['closed'] = '关闭';
$lang->story->operateList['activated'] = '激活';
$lang->requirement->common = $lang->URCommon;
$lang->requirement->create = "提{$lang->URCommon}";
+7 -2
View File
@@ -1794,7 +1794,10 @@ class storyModel extends model
if(($this->config->edition == 'biz' || $this->config->edition == 'max') && $oldStory->feedback) $this->loadModel('feedback')->updateStatus('story', $oldStory->feedback, $story->status, $oldStory->status);
}
return common::createChanges($oldStory, $story);
$changes = common::createChanges($oldStory, $story);
if(!empty($oldStory->siblings)) $this->syncSiblings($storyID, $oldStory->siblings, $changes, 'Closed');
return $changes;
}
/**
@@ -2388,7 +2391,9 @@ class storyModel extends model
/* Update parent story status. */
if($oldStory->parent > 0) $this->updateParentStatus($storyID, $oldStory->parent);
return common::createChanges($oldStory, $story);
$changes = common::createChanges($oldStory, $story);
if(!empty($oldStory->siblings)) $this->syncSiblings($storyID, $oldStory->siblings, $changes, 'Activated');
return $changes;
}
/**