* Adjust codes.
This commit is contained in:
@@ -90,7 +90,7 @@ class bugModel extends model
|
||||
empty($bug->case) ? $this->loadModel('score')->create('bug', 'create', $bugID) : $this->loadModel('score')->create('bug', 'createFormCase', $bug->case);
|
||||
|
||||
/* Callback the callable method to process the related data for object that is transfered to bug. */
|
||||
if(is_callable(array($this, $this->config->bug->fromObjects[$from]['callback']))) call_user_func(array($this, $this->config->bug->fromObjects[$from]['callback']), $bugID);
|
||||
if($from && is_callable(array($this, $this->config->bug->fromObjects[$from]['callback']))) call_user_func(array($this, $this->config->bug->fromObjects[$from]['callback']), $bugID);
|
||||
|
||||
return array('status' => 'created', 'id' => $bugID);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user