* Fix post has no plan.

This commit is contained in:
chaideqing
2023-08-21 07:26:14 +00:00
parent cc83b56835
commit 45e1a4cce0
+1 -1
View File
@@ -305,7 +305,7 @@ class storyModel extends model
$story->module = $this->post->modules[$key];
$story->plan = $this->post->plans[$key];
if(strpos('draft,reviewing', $story->status) !== false) $story->stage = $this->post->plan > 0 ? 'planned' : 'wait';
if(strpos('draft,reviewing', $story->status) !== false) $story->stage = $story->plan > 0 ? 'planned' : 'wait';
if($story->type == 'requirement') $requiredFields = str_replace(',plan,', ',', $requiredFields);
if(strpos($requiredFields, ',estimate,') !== false)
{