EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
load columns only field in list
Yuriicc8fa5a6b687
diff --git a/application/Espo/Core/FieldProcessing/LinkMultiple/ListLoader.php b/application/Espo/Core/FieldProcessing/LinkMultiple/ListLoader.phpindex 126a4c86cf..bab9a048d8 100644--- a/application/Espo/Core/FieldProcessing/LinkMultiple/ListLoader.php+++ b/application/Espo/Core/FieldProcessing/LinkMultiple/ListLoader.php@@ -65,7 +65,11 @@ class ListLoader implements LoaderInterfaceforeach ($this->getFieldList($entityType) as $field) {if (!in_array($field . 'Ids', $select) &&- !in_array($field . 'Names', $select)+ !in_array($field . 'Names', $select) &&+ (+ !$entity->hasAttribute($field . 'Columns') ||+ !in_array($field . 'Columns', $select)+ )) {continue;}