From 7ac890f382cdb18577d2c5c5cfc16ff87c7c70c3 Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Wed, 2 Nov 2022 07:35:23 +0000 Subject: [PATCH] * Fix bug#29180. --- module/story/model.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/module/story/model.php b/module/story/model.php index 46bc13503d..cf2a364aa5 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -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); } }