* code for task #2992.

This commit is contained in:
wangyidong
2017-05-08 10:31:41 +08:00
parent 52011a079c
commit 8e78fa7abf
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1563,7 +1563,7 @@ class projectModel extends model
$data = fixer::input('post')
->add('project', $projectID)
->add('date', $project->begin)
->add('left', (empty($burn) or $withLeft) ? $this->post->estimate : $burn->left)
->add('left', $withLeft ? $this->post->estimate : $burn->left)
->add('consumed', empty($burn) ? 0 : $burn->consumed)
->get();
if(!is_numeric($data->estimate)) return false;