summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-10-11 12:27:00 -0400
committerFrederic Guillot <fred@kanboard.net>2015-10-11 12:27:00 -0400
commit48a2cfc741101c76ba0e8d18f8cb631b9db93379 (patch)
tree13516d944d6dfd6ce1be0edc739fab0f5cdbe85b
parentee4464912d27bf37aa93f4af766ca9b20b2e2c65 (diff)
Fix minor issues
-rw-r--r--app/Controller/Taskstatus.php2
-rw-r--r--app/Model/Notification.php4
2 files changed, 2 insertions, 4 deletions
diff --git a/app/Controller/Taskstatus.php b/app/Controller/Taskstatus.php
index 9260b658..1768b773 100644
--- a/app/Controller/Taskstatus.php
+++ b/app/Controller/Taskstatus.php
@@ -30,8 +30,6 @@ class Taskstatus extends Base
public function open()
{
$task = $this->getTask();
- $redirect = $this->request->getStringParam('redirect');
-
$this->changeStatus($task, 'open', t('Task opened successfully.'), t('Unable to open this task.'));
$this->renderTemplate($task, 'task_status/open');
}
diff --git a/app/Model/Notification.php b/app/Model/Notification.php
index dbd60a2f..525e7f13 100644
--- a/app/Model/Notification.php
+++ b/app/Model/Notification.php
@@ -113,7 +113,7 @@ class Notification extends Base
*/
public function saveSettings($user_id, array $values)
{
- // $this->db->startTransaction();
+ $this->db->startTransaction();
if (isset($values['notifications_enabled']) && $values['notifications_enabled'] == 1) {
$this->enableNotification($user_id);
@@ -130,7 +130,7 @@ class Notification extends Base
$this->disableNotification($user_id);
}
- // $this->db->closeTransaction();
+ $this->db->closeTransaction();
}
/**