From 1f3d4f3901d553b77ece0916a5618784facc5c58 Mon Sep 17 00:00:00 2001 From: tanghucheng Date: Mon, 3 Jul 2023 13:20:39 +0800 Subject: [PATCH] * Fix bug #36138. --- module/story/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/story/model.php b/module/story/model.php index 0c2f09e06e..2b6ff4e3ae 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -5668,7 +5668,7 @@ class storyModel extends model public function linkStory($executionID, $productID, $storyID) { $lastOrder = (int)$this->dao->select('*')->from(TABLE_PROJECTSTORY)->where('project')->eq($executionID)->orderBy('order_desc')->limit(1)->fetch('order'); - $this->dao->insert(TABLE_PROJECTSTORY) + $this->dao->replace(TABLE_PROJECTSTORY) ->set('project')->eq($executionID) ->set('product')->eq($productID) ->set('story')->eq($storyID)