summaryrefslogtreecommitdiff
path: root/app/Controller/Category.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-01-14 20:18:13 -0500
committerFrederic Guillot <fred@kanboard.net>2016-01-14 20:18:13 -0500
commit805be7d33155478ef32c4bd3643dcf4025d85a05 (patch)
tree4ee858d96f3e3bf2b630471db148446c3c56b693 /app/Controller/Category.php
parentdc35a78374e9b091505cfc56eefcd0c631c56e3a (diff)
Move validator methods
Diffstat (limited to 'app/Controller/Category.php')
-rw-r--r--app/Controller/Category.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Controller/Category.php b/app/Controller/Category.php
index 9864348c..a0af4139 100644
--- a/app/Controller/Category.php
+++ b/app/Controller/Category.php
@@ -57,7 +57,7 @@ class Category extends Base
$project = $this->getProject();
$values = $this->request->getValues();
- list($valid, $errors) = $this->category->validateCreation($values);
+ list($valid, $errors) = $this->categoryValidator->validateCreation($values);
if ($valid) {
if ($this->category->create($values)) {
@@ -99,7 +99,7 @@ class Category extends Base
$project = $this->getProject();
$values = $this->request->getValues();
- list($valid, $errors) = $this->category->validateModification($values);
+ list($valid, $errors) = $this->categoryValidator->validateModification($values);
if ($valid) {
if ($this->category->update($values)) {