Models refactoring/improvements
This commit is contained in:
@@ -23,7 +23,7 @@ class CommentNotificationListener extends BaseNotificationListener
|
||||
{
|
||||
$values = array();
|
||||
$values['comment'] = $this->notification->comment->getById($data['id']);
|
||||
$values['task'] = $this->notification->task->getById($values['comment']['task_id'], true);
|
||||
$values['task'] = $this->notification->task->getDetails($values['comment']['task_id']);
|
||||
|
||||
return $values;
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ class FileNotificationListener extends BaseNotificationListener
|
||||
{
|
||||
$values = array();
|
||||
$values['file'] = $data;
|
||||
$values['task'] = $this->notification->task->getById($data['task_id'], true);
|
||||
$values['task'] = $this->notification->task->getDetails($data['task_id']);
|
||||
|
||||
return $values;
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ class SubTaskNotificationListener extends BaseNotificationListener
|
||||
{
|
||||
$values = array();
|
||||
$values['subtask'] = $this->notification->subtask->getById($data['id'], true);
|
||||
$values['task'] = $this->notification->task->getById($data['task_id'], true);
|
||||
$values['task'] = $this->notification->task->getDetails($data['task_id']);
|
||||
|
||||
return $values;
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ class TaskNotificationListener extends BaseNotificationListener
|
||||
public function getTemplateData(array $data)
|
||||
{
|
||||
$values = array();
|
||||
$values['task'] = $this->notification->task->getById($data['task_id'], true);
|
||||
$values['task'] = $this->notification->task->getDetails($data['task_id']);
|
||||
|
||||
return $values;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user