This commit is contained in:
tanghucheng
2023-07-03 13:12:46 +08:00
parent 1aed5544dc
commit 869b17e421
+2 -2
View File
@@ -259,8 +259,8 @@ class storyModel extends model
$product = $this->loadModel('product')->getById($story->product);
if($product->type == 'normal' or $product->type == 'branch' or $story->type == 'requirement')
{
if(isset($this->post->branches)) $this->post->branches = isset($story->branch) ? array($story->branch) : array(0 => 0);
if(isset($this->post->modules)) $this->post->modules = isset($story->module) ? array($story->module) : array(0 => 0);
if(!$this->post->branches) $this->post->branches = isset($story->branch) ? array($story->branch) : array(0 => 0);
if(!$this->post->modules) $this->post->modules = isset($story->module) ? array($story->module) : array(0 => 0);
$this->post->plans = isset($story->plan) ? array($story->plan) : array(0 => 0);
}