diff --git a/module/action/model.php b/module/action/model.php index 5e8477f90a..9affc3fda6 100755 --- a/module/action/model.php +++ b/module/action/model.php @@ -253,6 +253,8 @@ class actionModel extends model case 'task': $fields = 'project, execution, story'; $result = $this->dao->select($fields)->from($this->config->objectTables[$objectType])->where('id')->eq($objectID)->fetch(); + if(empty($result)) break; + if($result->story != 0) { $product = $this->dao->select('product')->from(TABLE_STORY)->where('id')->eq($result->story)->fetchPairs('product');