diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-11-23 14:42:49 -0500 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-11-23 14:42:49 -0500 |
commit | 9ae83c639ef88e9274d21b1917357a3212d5988c (patch) | |
tree | 174a483ecaa84038cb80dd9a5b72da64caf9aa18 /jsonrpc.php | |
parent | 4d007ec39fe808c28fe08516afe549aa5d0aeb42 (diff) |
Create TaskPosition model
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) { |