Rewrite of session management

This commit is contained in:
Frederic Guillot
2015-11-15 12:50:33 -05:00
parent 2fc402f673
commit a675271ad7
72 changed files with 793 additions and 466 deletions

View File

@@ -59,10 +59,10 @@ class Taskcreation extends Base
list($valid, $errors) = $this->taskValidator->validateCreation($values);
if ($valid && $this->taskCreation->create($values)) {
$this->session->flash(t('Task created successfully.'));
$this->flash->success(t('Task created successfully.'));
$this->afterSave($project, $values);
} else {
$this->session->flashError(t('Unable to create your task.'));
$this->flash->failure(t('Unable to create your task.'));
}
$this->create($values, $errors);