From 86409982fdc3c3fa03ed0e27d23081c2aad2d63d Mon Sep 17 00:00:00 2001 From: sunguangming Date: Sun, 9 Oct 2022 13:17:40 +0800 Subject: [PATCH] * Fix bug #28292. --- module/story/control.php | 2 +- module/story/model.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/story/control.php b/module/story/control.php index dd6bec11fc..2aafdd89aa 100755 --- a/module/story/control.php +++ b/module/story/control.php @@ -554,7 +554,7 @@ class story extends control } /* Project or execution linked stories. */ - if($executionID and $storyType == 'story') + if($executionID) { $products = array(); foreach($mails as $story) $products[$story->storyID] = $productID; diff --git a/module/story/model.php b/module/story/model.php index 9873f8f8f0..447eefbaa4 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -300,7 +300,7 @@ class storyModel extends model } /* Project or execution linked story. */ - if($executionID != 0 and $story->type == 'story') + if($executionID != 0) { $this->linkStory($executionID, $this->post->product, $storyID); if($this->config->systemMode == 'new' and $executionID != $this->session->project) $this->linkStory($this->session->project, $this->post->product, $storyID);