* Fix issues of the batch review stories.

This commit is contained in:
tianshujie
2023-11-03 13:28:35 +08:00
parent 49f80e39a6
commit 656f5e39f6
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -1133,7 +1133,7 @@ class storyModel extends model
}
$this->dao->update(TABLE_STORY)->data($story, 'finalResult')->autoCheck()->where('id')->eq($storyID)->exec();
$this->setStage($storyID);
$this->setStage((int)$storyID);
$story->id = $storyID;
$this->recordReviewAction($story, $result, $reason);
+5 -1
View File
@@ -10,7 +10,11 @@ $getAffectedTabs = function($story, $users)
foreach($story->executions as $executionID => $execution)
{
$teams = '';
foreach($story->teams[$executionID] as $member) $teams .= zget($users, $member) . ' ';
if(isset($story->teams[$executionID]))
{
foreach($story->teams[$executionID] as $member) $teams .= zget($users, $member) . ' ';
}
$affectedTaskCount += count(zget($story->tasks, $executionID, array()));
$affectedProjects[] = h6
(