diff --git a/resources/views/tasks/kanban.blade.php b/resources/views/tasks/kanban.blade.php index df670cd44e12..5ee8f33ded73 100644 --- a/resources/views/tasks/kanban.blade.php +++ b/resources/views/tasks/kanban.blade.php @@ -331,9 +331,9 @@ } var task = new TaskModel({ description: description, - task_status_id: self.public_id(), task_status_sort_order: self.tasks().length, }) + task.task_status_id(self.public_id()) var url = '{{ url('/tasks') }}'; var data = task.toData(); @@ -439,7 +439,6 @@ } self.viewTask = function() { - //console.log(); window.open('{{ url('/tasks') }}/' + self.public_id() + '/edit', 'task'); } @@ -464,8 +463,9 @@ if (data) { ko.mapping.fromJS(data, self.mapping, this); + // resolve the private status id to the public value + self.task_status_id(data.task_status ? data.task_status.public_id : 0); } else { - //self.description('{{ trans('texts.add_task') }}...'); self.is_blank(true); } } @@ -524,9 +524,12 @@
-

- Status Id:
- Sort Order: +
+