* Fix bug#42628.

This commit is contained in:
xieqiyu
2023-12-28 19:58:47 +08:00
parent d6cf35027e
commit 93f8a62923
+7 -1
View File
@@ -915,7 +915,13 @@ class storyZen extends story
/* Get edited stories. */
$storyIdList = array_unique($storyIdList);
$stories = $this->story->getByList($storyIdList);
foreach($storyIdList as $index => $storyID)
{
/* 处理选中的子需求的ID,截取-后的子需求ID。*/
/* Process selected child story ID. */
if(strpos((string)$storyID, '-') !== false) $storyIdList[$index] = substr($storyID, strpos($storyID, '-') + 1);
}
$stories = $this->story->getByList($storyIdList);
if(empty($stories)) return false;
/* Filter twins. */