* [bug#49862,done,1h,0h] Adjust retracted demand action label.

This commit is contained in:
wangyuting
2024-09-09 17:10:03 +08:00
committed by 胡方舟
parent 05c4a12ac5
commit 34df4c077b
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -198,6 +198,7 @@ class actionModel extends model
if(($actionName == 'finished' && $objectType == 'todo') || ($actionName == 'closed' && in_array($action->objectType, array('story', 'demand'))) || ($actionName == 'resolved' && $action->objectType == 'bug')) $this->actionTao->processAppendLinkByExtra($action);
if($actionName == 'distributed' && $objectType == 'story') $this->actionTao->processActionExtra(TABLE_DEMAND, $action, 'title', 'demand', 'view', false, $this->config->vision != 'or' ? false : true);
if(in_array($actionName, array('retracted', 'restored')) && $action->objectType == 'demand') $this->actionTao->processActionExtra(TABLE_STORY, $action, 'title', 'epic', 'view');
if(in_array($actionName, array('retracted', 'restored')) && $action->objectType != 'demand') $this->actionTao->processActionExtra(TABLE_STORY, $action, 'title', 'story', 'storyView');
if(in_array($actionName, array('totask', 'linkchildtask', 'unlinkchildrentask', 'linkparenttask', 'unlinkparenttask', 'deletechildrentask', 'converttotask')) && $action->objectType != 'feedback') $this->actionTao->processActionExtra(TABLE_TASK, $action, 'name', 'task', 'view');;
if(in_array($actionName, array('linkchildstory', 'unlinkchildrenstory', 'linkparentstory', 'unlinkparentstory', 'deletechildrenstory', 'createchildrenstory'))) $this->actionTao->processActionExtra(TABLE_STORY, $action, 'title', 'story', 'storyView');
+3
View File
@@ -532,6 +532,9 @@ class actionTao extends actionModel
case 'demand':
$paramString = "demandID={$action->extra}";
break;
case 'epic':
$paramString = "storyID={$action->extra}";
break;
}
return $paramString;