summaryrefslogtreecommitdiff
path: root/app/Controller
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-01-11 22:07:39 -0500
committerFrederic Guillot <fred@kanboard.net>2016-01-11 22:07:39 -0500
commit3699073371acc66ccacb56a89e87147a9c90d8c4 (patch)
treec21c55936e472655aaa5aca3a976a2d02a0ed63a /app/Controller
parente31185a2bd85d7d8e16a614cb21dfdbff10ce070 (diff)
Move project validator methods
Diffstat (limited to 'app/Controller')
-rw-r--r--app/Controller/Project.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Controller/Project.php b/app/Controller/Project.php
index 5e75db4e..27c827d1 100644
--- a/app/Controller/Project.php
+++ b/app/Controller/Project.php
@@ -169,7 +169,7 @@ class Project extends Base
}
}
- list($valid, $errors) = $this->project->validateModification($values);
+ list($valid, $errors) = $this->projectValidator->validateModification($values);
if ($valid) {
if ($this->project->update($values)) {
@@ -329,7 +329,7 @@ class Project extends Base
public function save()
{
$values = $this->request->getValues();
- list($valid, $errors) = $this->project->validateCreation($values);
+ list($valid, $errors) = $this->projectValidator->validateCreation($values);
if ($valid) {
$project_id = $this->project->create($values, $this->userSession->getId(), true);