From 9ae83c639ef88e9274d21b1917357a3212d5988c Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sun, 23 Nov 2014 14:42:49 -0500 Subject: Create TaskPosition model --- jsonrpc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'jsonrpc.php') 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) { -- cgit v1.2.3