- Abilitare anche il filtro TUTTI per Settore

This commit is contained in:
paoloar77
2022-02-10 21:16:56 +01:00
parent 5f767400b7
commit 86635053d7
5 changed files with 26 additions and 13 deletions

View File

@@ -459,15 +459,19 @@ export default defineComponent({
} else {
if ((item.table === 'skills') && item.value === costanti.FILTER_TUTTI) {
let obj2: any = {}
// idSector
obj2['sector._id'] = idSector
filtersearch2.push(obj2)
if (idSector > 0) {
// idSector
obj2['sector._id'] = idSector
filtersearch2.push(obj2)
}
}
if ((item.table === 'subskills') && item.value === costanti.FILTER_TUTTI) {
let obj2: any = {}
// idSector
obj2['myskill._id'] = idSkill
filtersearch2.push(obj2)
if (idSkill > 0) {
obj2['myskill._id'] = idSkill
filtersearch2.push(obj2)
}
}
}
@@ -493,7 +497,8 @@ export default defineComponent({
})
}
}
if ((false && nosearch && props.finder) || (props.finder_noNull && nosearch)) {
// if ((false && nosearch && props.finder) || (props.finder_noNull && nosearch)) {
if (props.finder_noNull && nosearch) {
returnedData.value = []
returnedCount = 0
return true