diff --git a/module/productplan/model.php b/module/productplan/model.php index 8f1ce3dbdb..68ee0f9613 100644 --- a/module/productplan/model.php +++ b/module/productplan/model.php @@ -502,9 +502,9 @@ class productplanModel extends model $this->dao->update(TABLE_STORY)->set("plan")->eq(join(',', $plans))->where('id')->eq((int)$storyID)->andWhere('branch')->eq('0')->exec(); } + $this->action->create('story', $storyID, 'linked2plan', '', $planID); $this->story->setStage($storyID); - } $this->dao->update(TABLE_PRODUCTPLAN)->set("order")->eq($currentOrder)->where('id')->eq((int)$planID)->exec();