* Fix plan linked stories not update zt_planstory issue.

This commit is contained in:
tianshujie
2023-12-07 11:30:48 +08:00
parent b959ebc784
commit 61b00965dd
+3 -2
View File
@@ -856,13 +856,14 @@ class productplanModel extends model
/* Update the plan linked with the story and the order of the story in the plan. */
$this->dao->update(TABLE_STORY)->set("plan")->eq($planID)->where('id')->eq((int)$storyID)->exec();
$this->story->updateStoryOrderOfPlan($storyID, $planID, $story->plan);
$this->story->updateStoryOrderOfPlan((int)$storyID, (string)$planID, $story->plan);
$this->action->create('story', $storyID, 'linked2plan', '', $planID);
$this->story->setStage($storyID);
}
$this->action->create('productplan', $planID, 'linkstory', '', implode(',', $storyIdList));
$this->productplanTao->syncLinkedStories($planID, $storyIdList);
$this->action->create('productplan', (int)$planID, 'linkstory', '', implode(',', $storyIdList));
return !dao::isError();
}