* Fix bug#29180.

This commit is contained in:
xieqiyu
2022-11-02 07:36:30 +00:00
parent 421d30ad23
commit 7ac890f382
+4 -4
View File
@@ -6159,14 +6159,14 @@ class storyModel extends model
/* Synchronize and record dynamics. */
$this->loadModel('action');
$siblings = explode(',', trim($siblings, ','));
foreach($siblings as $storyID)
foreach($siblings as $siblingID)
{
$this->dao->update(TABLE_STORY)->data($syncFieldList)->where('id')->eq((int)$storyID)->exec();
$this->dao->update(TABLE_STORY)->data($syncFieldList)->where('id')->eq((int)$siblingID)->exec();
if(!dao::isError())
{
$this->setStage($storyID);
$this->setStage($siblingID);
$actionID = $this->action->create('story', $storyID, 'syncsiblings', '', "$operate|$storyID");
$actionID = $this->action->create('story', $siblingID, 'syncsiblings', '', "$operate|$storyID");
$this->action->logHistory($actionID, $changes);
}
}