From d68d71801c92532f72ac09346209f4d04f2e9cc5 Mon Sep 17 00:00:00 2001 From: Miguel Gonzalez Date: Mon, 6 Aug 2018 09:20:04 +0200 Subject: [PATCH] fix: Filter by cards to find position This commit fixes an error when WIP is displyed on the kanban column. --- app/coffee/modules/kanban/sortable.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/coffee/modules/kanban/sortable.coffee b/app/coffee/modules/kanban/sortable.coffee index 39db6316..b1141537 100644 --- a/app/coffee/modules/kanban/sortable.coffee +++ b/app/coffee/modules/kanban/sortable.coffee @@ -86,7 +86,7 @@ KanbanSortableDirective = ($repo, $rs, $rootscope) -> dragMultipleItems = [item] firstElement = dragMultipleItems[0] - index = $(firstElement).index() + index = $(firstElement).index('.card') newStatus = newParentScope.s.id usList = _.map dragMultipleItems, (item) -> $(item).scope().us