Bug 37762: Bugfix: Display relationshipSelect

Signed-off-by: Jason Robb <jrobb@sekls.org>
Signed-off-by: Lisette Scheer <lisette@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Pedro Amorim 2026-01-19 13:21:36 -01:00 committed by Lucas Gass
parent 8e87fae1cc
commit 87961beb4d
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
2 changed files with 17 additions and 4 deletions

View File

@ -227,10 +227,7 @@ export default {
"</a>"
);
}
return accessNestedProperty(
attr.relationshipDisplayAttr,
row
);
return accessNestedProperty(attr.name, row);
},
});
return acc;

View File

@ -138,6 +138,22 @@
></component>
</template>
</template>
<template v-else-if="attribute.type == 'relationshipSelect'">
<label>{{ attribute.label }}:</label>
<LinkWrapper
:linkData="attribute.showElement?.link"
:resource="resource"
>
<span>
{{
attribute?.format ||
(attribute.value && attribute?.value.includes("."))
? formatValue(attribute, resource)
: resource[attribute.name]
}}
</span>
</LinkWrapper>
</template>
<template
v-else-if="
attr.type == 'additional_fields' &&