Fix save and load of folder checkbox in filters [SCI-8598]

This commit is contained in:
Martin Artnik 2023-06-06 12:43:27 +02:00
parent 5afe02552f
commit f344b72583

View file

@ -577,7 +577,7 @@ var ProjectsIndex = (function() {
createdOnFromFilter: selectDate($createdOnFromFilter), createdOnFromFilter: selectDate($createdOnFromFilter),
createdOnToFilter: selectDate($createdOnToFilter), createdOnToFilter: selectDate($createdOnToFilter),
membersFilter: dropdownSelector.getData($('.members-filter')), membersFilter: dropdownSelector.getData($('.members-filter')),
lookInsideFolders: $foldersCB.prop('checked') ? 'true' : '', lookInsideFolders: !!$foldersCB.prop('checked'),
archivedOnFromFilter: selectDate($archivedOnFromFilter), archivedOnFromFilter: selectDate($archivedOnFromFilter),
archivedOnToFilter: selectDate($archivedOnToFilter), archivedOnToFilter: selectDate($archivedOnToFilter),
projectsViewSearch: $textFilter.val() projectsViewSearch: $textFilter.val()
@ -589,7 +589,7 @@ var ProjectsIndex = (function() {
$createdOnFromFilter.val(currentFilters.createdOnFromFilter); $createdOnFromFilter.val(currentFilters.createdOnFromFilter);
$createdOnToFilter.val(currentFilters.createdOnToFilter); $createdOnToFilter.val(currentFilters.createdOnToFilter);
$foldersCB.val(currentFilters.lookInsideFolders); $foldersCB.attr('checked', currentFilters.lookInsideFolders);
dropdownSelector.setData($('.members-filter'), currentFilters.membersFilter); dropdownSelector.setData($('.members-filter'), currentFilters.membersFilter);
$archivedOnFromFilter.val(currentFilters.archivedOnFromFilter); $archivedOnFromFilter.val(currentFilters.archivedOnFromFilter);
$archivedOnToFilter.val(currentFilters.archivedOnToFilter); $archivedOnToFilter.val(currentFilters.archivedOnToFilter);