Skip to content

Commit 16027e5

Browse files
committed
Fix recordID undefined for recordlist refField
1 parent 2840b00 commit 16027e5

1 file changed

Lines changed: 4 additions & 10 deletions

File tree

client/web/compose/src/components/PageBlocks/RecordListBase.vue

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1277,15 +1277,9 @@ export default {
12771277
},
12781278
12791279
onFilter (filter = []) {
1280-
if (filter.length) {
1281-
filter.forEach(f => {
1282-
f.name = this.$t('recordList.customFilter')
1283-
})
1284-
1285-
this.activeFilters = [this.$t('recordList.customFilter')]
1286-
} else {
1287-
this.activeFilters = []
1288-
}
1280+
filter.forEach(f => {
1281+
f.name = this.$t('recordList.customFilter')
1282+
})
12891283
12901284
this.recordListFilter = filter
12911285
this.setStorageRecordListFilter()
@@ -1523,7 +1517,7 @@ export default {
15231517
filter.push(`(${pf})`)
15241518
}
15251519
1526-
if (refField && (this.record || {}).recordID) {
1520+
if (refField && this.record.recordID) {
15271521
filter.push(`(${refField} = ${this.record.recordID})`)
15281522
}
15291523

0 commit comments

Comments
 (0)