diff options
Diffstat (limited to 'jsonrpc.php')
-rw-r--r-- | jsonrpc.php | 3 |
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) { |