* [misc] fix plan order error.

This commit is contained in:
sunguangming
2025-06-04 09:18:50 +00:00
parent 832e835af0
commit c2b7ab1d67
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -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&param=" . helper::safe64Encode("&browseType=$browseType&queryID=$param")), 'product');
-1
View File
@@ -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();