From c2b7ab1d676a45dec3b07d44fd59abb716932005 Mon Sep 17 00:00:00 2001 From: sunguangming Date: Wed, 4 Jun 2025 06:28:00 +0000 Subject: [PATCH] * [misc] fix plan order error. --- module/productplan/control.php | 2 +- module/productplan/model.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/module/productplan/control.php b/module/productplan/control.php index 8baabf9814..2e029f1e84 100644 --- a/module/productplan/control.php +++ b/module/productplan/control.php @@ -584,7 +584,7 @@ class productplan extends control $this->productplan->linkStory($planID, $this->post->stories); if(dao::isError()) return $this->sendError(dao::getError()); - return $this->send(array('result' => 'success', 'load' => inlink('view', "planID=$planID&type=story&orderBy=$orderBy"))); + return $this->send(array('result' => 'success', 'load' => inlink('view', "planID=$planID&type=story&orderBy=order_desc"))); } $this->session->set('storyList', inlink('view', "planID=$planID&type=story&orderBy=$orderBy&link=true¶m=" . helper::safe64Encode("&browseType=$browseType&queryID=$param")), 'product'); diff --git a/module/productplan/model.php b/module/productplan/model.php index 1cd71b792a..9e845de41b 100644 --- a/module/productplan/model.php +++ b/module/productplan/model.php @@ -890,7 +890,6 @@ class productplanModel extends model $this->story->setStage($storyID); } - $this->productplanTao->syncLinkedStories($planID, $storyIdList, false); $this->action->create('productplan', $planID, 'linkstory', '', implode(',', $storyIdList)); return !dao::isError();