Commit dbf05532 authored by Merlin Axel Rutz's avatar Merlin Axel Rutz
Browse files

Issue #3359875 by dcam, tte, geek-merlin, Sophie.SK: Memory allocation error

parent 97746612
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -324,7 +324,7 @@ class InlineEntityFormComplex extends InlineEntityFormBase implements ContainerF
      // to be referenced otherwise we set the variable to false.
      /** @var \Drupal\Core\Entity\EntityReferenceSelection\SelectionInterface $handler */
      $handler = $this->selectionManager->getInstance($options);
      $have_multiple_existing_entities = $handler->countReferenceableEntities() > 1;
      $have_multiple_existing_entities = count($handler->getReferenceableEntities(NULL, 'CONTAINS', 2)) > 1;
    } else {
      $have_multiple_existing_entities = FALSE;
    }