mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 15:06:06 +00:00
htmlizer take into account noLoad
This commit is contained in:
@@ -480,9 +480,15 @@ class Htmlizer
|
||||
|
||||
$orderData = $this->getRelationOrder($entity->getEntityType(), $relation);
|
||||
|
||||
$entityDefs = $this->entityManager
|
||||
->getDefs()
|
||||
->getEntity($entity->getEntityType());
|
||||
|
||||
if (
|
||||
$entity instanceof CoreEntity &&
|
||||
$entity->hasLinkMultipleField($relation)
|
||||
$entity->hasLinkMultipleField($relation) &&
|
||||
$entityDefs->hasField($relation) &&
|
||||
!$entityDefs->getField($relation)->getParam('noLoad')
|
||||
) {
|
||||
return $this->entityManager
|
||||
->getRDBRepository($entity->getEntityType())
|
||||
|
||||
Reference in New Issue
Block a user