diff --git a/module/task/control.php b/module/task/control.php index 556b1d8870..2ca3a7d8cb 100755 --- a/module/task/control.php +++ b/module/task/control.php @@ -60,7 +60,7 @@ class task extends control /* Submit the data process after create the task form. */ if(!empty($_POST)) { - $taskData = $this->taskZen->buildTaskForCreate($this->post->execution ? $this->post->execution : $executionID); + $taskData = $this->taskZen->buildTaskForCreate($this->post->execution ? (int)$this->post->execution : $executionID); if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError())); /* Check whether a task with the same name is created within the specified time. */