Task list show wrong tasks (for contributor filter)
In the fixtures the user "DBS Nuzter" has 2 contributions on tasks but filtering the tasks list with tab_category=ALL and contributors="DBS Nuzter" (http://localhost:3000/tasks?tab_category=ALL&contributor_ids=133237) shows 3 tasks which only contains one of the two tasks.
The reason seems to be following code from app/views/tasks/index.json.jbuilder
:
if @tab_category == "ALL"
json.partial! "/api/tasks/task", collection: tasks_visible_in_sidebar(workflow), as: :task
else
json.partial! "/api/tasks/task", collection: sort_tasks_by_position_in_sidebar(tasks), as: :task
end