* [rule] commit before create action.
This commit is contained in:
@@ -97,7 +97,6 @@ class task extends control
|
||||
if($this->dao->inTransaction()) $this->dao->rollBack();
|
||||
return $this->send(array('result' => 'fail', 'message' => dao::getError()));
|
||||
}
|
||||
if($this->dao->inTransaction()) $this->dao->commit();
|
||||
|
||||
/* Update other data related to the task after it is created. */
|
||||
$columnID = isset($output['columnID']) ? (int)$output['columnID'] : 0;
|
||||
|
||||
@@ -981,6 +981,7 @@ class taskModel extends model
|
||||
$this->dao->insert(TABLE_TASKSPEC)->data($taskSpec)->autoCheck()->exec();
|
||||
|
||||
if(dao::isError()) return false;
|
||||
if($this->dao->inTransaction()) $this->dao->commit();
|
||||
|
||||
if($createAction)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user