summaryrefslogtreecommitdiff
path: root/app/Controller
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-01-11 21:27:49 -0500
committerFrederic Guillot <fred@kanboard.net>2016-01-11 21:27:49 -0500
commitb50f53ab3aac1311c80e2c1db98bf263f0c81984 (patch)
treea40dc71e1037908385c7adf1bc7df53284ba30fa /app/Controller
parent4f38bf4c689ac3b3cb8b37c86e865602502caaf6 (diff)
Move task link validator methods
Diffstat (limited to 'app/Controller')
-rw-r--r--app/Controller/Tasklink.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Controller/Tasklink.php b/app/Controller/Tasklink.php
index 068bf16d..a81d3ee5 100644
--- a/app/Controller/Tasklink.php
+++ b/app/Controller/Tasklink.php
@@ -69,7 +69,7 @@ class Tasklink extends Base
$values = $this->request->getValues();
$ajax = $this->request->isAjax() || $this->request->getIntegerParam('ajax');
- list($valid, $errors) = $this->taskLink->validateCreation($values);
+ list($valid, $errors) = $this->taskLinkValidator->validateCreation($values);
if ($valid) {
if ($this->taskLink->create($values['task_id'], $values['opposite_task_id'], $values['link_id'])) {
@@ -125,7 +125,7 @@ class Tasklink extends Base
$task = $this->getTask();
$values = $this->request->getValues();
- list($valid, $errors) = $this->taskLink->validateModification($values);
+ list($valid, $errors) = $this->taskLinkValidator->validateModification($values);
if ($valid) {
if ($this->taskLink->update($values['id'], $values['task_id'], $values['opposite_task_id'], $values['link_id'])) {