summaryrefslogtreecommitdiff
path: root/jsonrpc.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-11-23 14:42:49 -0500
committerFrédéric Guillot <fred@kanboard.net>2014-11-23 14:42:49 -0500
commit9ae83c639ef88e9274d21b1917357a3212d5988c (patch)
tree174a483ecaa84038cb80dd9a5b72da64caf9aa18 /jsonrpc.php
parent4d007ec39fe808c28fe08516afe549aa5d0aeb42 (diff)
Create TaskPosition model
Diffstat (limited to 'jsonrpc.php')
-rw-r--r--jsonrpc.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/jsonrpc.php b/jsonrpc.php
index 67b45fb3..37604011 100644
--- a/jsonrpc.php
+++ b/jsonrpc.php
@@ -9,6 +9,7 @@ $models = array(
'Task',
'TaskCreation',
'TaskFinder',
+ 'TaskPosition',
'TaskStatus',
'TaskValidator',
'User',
@@ -109,7 +110,7 @@ $server->bind('getAllTasks', $taskFinderModel, 'getAll');
$server->bind('openTask', $taskStatusModel, 'open');
$server->bind('closeTask', $taskStatusModel, 'close');
$server->bind('removeTask', $taskModel, 'remove');
-$server->bind('moveTaskPosition', $taskModel, 'movePosition');
+$server->bind('moveTaskPosition', $taskPositionModel, 'movePosition');
$server->register('createTask', function($title, $project_id, $color_id = '', $column_id = 0, $owner_id = 0, $creator_id = 0, $date_due = '', $description = '', $category_id = 0, $score = 0) use ($taskCreationModel, $taskValidatorModel) {