diff --git a/module/story/model.php b/module/story/model.php index 9c59455c2d..707c9b0fe7 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -409,8 +409,8 @@ class storyModel extends model $story->category = $stories->category[$i]; $story->pri = $stories->pri[$i]; $story->estimate = $stories->estimate[$i]; - $story->status = ($this->app->openApp == project || $this->app->openApp == execution ||($stories->needReview[$i] == 0 and !$forceReview)) ? 'active' : 'draft'; - $story->stage = ($this->app->openApp == project || $this->app->openApp == execution) ? 'projected' : 'wait'; + $story->status = ($this->app->openApp == project or $this->app->openApp == execution or ($stories->needReview[$i] == 0 and !$forceReview)) ? 'active' : 'draft'; + $story->stage = ($this->app->openApp == project or $this->app->openApp == execution) ? 'projected' : 'wait'; $story->keywords = $stories->keywords[$i]; $story->sourceNote = $stories->sourceNote[$i]; $story->product = $productID;