Skip to content

Commit

Permalink
Fix recordID undefined for recordlist refField
Browse files Browse the repository at this point in the history
  • Loading branch information
Fajfa committed Oct 16, 2024
1 parent cd9f19c commit 63a0a66
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions client/web/compose/src/components/PageBlocks/RecordListBase.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1277,15 +1277,9 @@ export default {
},
onFilter (filter = []) {
if (filter.length) {
filter.forEach(f => {
f.name = this.$t('recordList.customFilter')
})
this.activeFilters = [this.$t('recordList.customFilter')]
} else {
this.activeFilters = []
}
filter.forEach(f => {
f.name = this.$t('recordList.customFilter')
})
this.recordListFilter = filter
this.setStorageRecordListFilter()
Expand Down Expand Up @@ -1523,7 +1517,7 @@ export default {
filter.push(`(${pf})`)
}
if (refField && (this.record || {}).recordID) {
if (refField && this.record.recordID) {
filter.push(`(${refField} = ${this.record.recordID})`)
}
Expand Down

0 comments on commit 63a0a66

Please sign in to comment.