This commit is contained in:
Yuri Kuznetsov
2025-09-05 16:12:40 +03:00
parent 5ba36b11d7
commit ea6b4a14b6
@@ -81,6 +81,7 @@ export default class AttachmentInsertSourceFromHelper {
filters = this.view['getSelectFilters' + source]() || {};
}
// @todo EntityType => link mapping defined in metadata for automatic filtering.
if (this.model.attributes.parentId && this.model.attributes.parentType === 'Account') {
if (
this.metadata.get(`entityDefs.${source}.fields.account.type`) === 'link' &&