Minor fixes

This commit is contained in:
Frederic Guillot
2016-05-28 20:26:23 -04:00
parent 729c933d00
commit 9370797095
12 changed files with 18 additions and 16 deletions

View File

@@ -54,7 +54,7 @@ class SubtaskController extends BaseController
list($valid, $errors) = $this->subtaskValidator->validateCreation($values);
if ($valid) {
if ($this->subtaskModel->create($values)) {
if ($this->subtaskModel->create($values) !== false) {
$this->flash->success(t('Sub-task added successfully.'));
} else {
$this->flash->failure(t('Unable to create your sub-task.'));