Add Mysql/MariaDB support

This commit is contained in:
Frédéric Guillot
2014-03-30 19:53:59 -04:00
parent 34711f5846
commit d9dfd9d619
19 changed files with 405 additions and 46 deletions

View File

@@ -186,6 +186,11 @@ class Task extends Base
if (! empty($task['date_due'])) {
$task['date_due'] = date(t('m/d/Y'), $task['date_due']);
}
else {
$task['date_due'] = '';
}
$task['score'] = $task['score'] ?: '';
$this->response->html($this->template->layout('task_edit', array(
'errors' => array(),
@@ -324,6 +329,15 @@ class Task extends Base
if (! $task) $this->notfound();
$this->checkProjectPermissions($task['project_id']);
if (! empty($task['date_due'])) {
$task['date_due'] = date(t('m/d/Y'), $task['date_due']);
}
else {
$task['date_due'] = '';
}
$task['score'] = $task['score'] ?: '';
$this->response->html($this->template->layout('task_new', array(
'errors' => array(),
'values' => $task,