Merge pull request #3214 from okriuchykhin/ok_SCI_5555

Fix filtering on current tasks widget [SCI-5555]
This commit is contained in:
Alex Kriuchykhin 2021-03-17 10:40:53 +01:00 committed by GitHub
commit ee73088a81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -134,7 +134,7 @@ var DasboardCurrentTasksWidget = (function() {
$currentTasksList.find('.widget-placeholder').addClass($('.current-tasks-navbar .active').data('mode'));
}
}
appendTasksList(result, $currentTasksList);
appendTasksList(result, '.current-tasks-list-wrapper');
PerfectSb().update_all();
if (newList) InfiniteScroll.resetScroll('.current-tasks-list-wrapper');
animateSpinner($currentTasksList, false);

View file

@ -26,7 +26,7 @@ module Dashboard
tasks = tasks.left_outer_joins(:user_my_modules).where(user_my_modules: { user_id: current_user.id })
end
tasks = tasks.where(my_module_status_id: task_filters[:statuses])
tasks = tasks.where(my_module_status_id: task_filters[:statuses]) if task_filters[:statuses].present?
case task_filters[:sort]
when 'start_date'