Fix minor issues
This commit is contained in:
@@ -30,8 +30,6 @@ class Taskstatus extends Base
|
|||||||
public function open()
|
public function open()
|
||||||
{
|
{
|
||||||
$task = $this->getTask();
|
$task = $this->getTask();
|
||||||
$redirect = $this->request->getStringParam('redirect');
|
|
||||||
|
|
||||||
$this->changeStatus($task, 'open', t('Task opened successfully.'), t('Unable to open this task.'));
|
$this->changeStatus($task, 'open', t('Task opened successfully.'), t('Unable to open this task.'));
|
||||||
$this->renderTemplate($task, 'task_status/open');
|
$this->renderTemplate($task, 'task_status/open');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ class Notification extends Base
|
|||||||
*/
|
*/
|
||||||
public function saveSettings($user_id, array $values)
|
public function saveSettings($user_id, array $values)
|
||||||
{
|
{
|
||||||
// $this->db->startTransaction();
|
$this->db->startTransaction();
|
||||||
|
|
||||||
if (isset($values['notifications_enabled']) && $values['notifications_enabled'] == 1) {
|
if (isset($values['notifications_enabled']) && $values['notifications_enabled'] == 1) {
|
||||||
$this->enableNotification($user_id);
|
$this->enableNotification($user_id);
|
||||||
@@ -130,7 +130,7 @@ class Notification extends Base
|
|||||||
$this->disableNotification($user_id);
|
$this->disableNotification($user_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
// $this->db->closeTransaction();
|
$this->db->closeTransaction();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user