fix: [template:genericFilters] Do not fail if tag selector container doesn't exist
parent
6d40968f24
commit
a841888db9
|
@ -118,7 +118,7 @@ echo $this->Bootstrap->modal([
|
|||
}
|
||||
}
|
||||
$selectTag = modalObject.$modal.find('.tag-container select.select2-input')
|
||||
activeFilters['filteringTags'] = $selectTag.select2('data').map(tag => tag.text)
|
||||
activeFilters['filteringTags'] = $selectTag.length > 0 ? $selectTag.select2('data').map(tag => tag.text) : []
|
||||
const searchParam = jQuery.param(activeFilters);
|
||||
const url = `/${controller}/${action}?${searchParam}`
|
||||
|
||||
|
|
Loading…
Reference in New Issue