diff --git a/client/web/compose/src/components/PageBlocks/RecordListBase.vue b/client/web/compose/src/components/PageBlocks/RecordListBase.vue index d3eeb5764..58b8ae51d 100644 --- a/client/web/compose/src/components/PageBlocks/RecordListBase.vue +++ b/client/web/compose/src/components/PageBlocks/RecordListBase.vue @@ -1331,8 +1331,12 @@ export default { this.recordsPerPage = this.options.perPage // Legacy support for linkToParent - if (this.isOnRecordPage && this.options.linkToParent && !this.options.refField) { - this.options.refField = (this.recordListModule.fields.find(f => f.kind === 'Record' && f.options.moduleID === this.page.moduleID) || {}).name + if (this.isOnRecordPage && this.options.linkToParent) { + if (this.options.refField) { + this.options.linkToParent = false + } else { + this.options.refField = (this.recordListModule.fields.find(f => f.kind === 'Record' && f.options.moduleID === this.page.moduleID) || {}).name + } } const { moduleID, presort, prefilter, editable, refField, positionField } = this.options