Browse Source

remove requirement for a value in the configured reference field (for collections)

pull/795/head
Seth Shaw 4 years ago
parent
commit
3d2eb69736
  1. 2
      modules/islandora_breadcrumbs/src/IslandoraBreadcrumbBuilder.php

2
modules/islandora_breadcrumbs/src/IslandoraBreadcrumbBuilder.php

@ -54,7 +54,7 @@ class IslandoraBreadcrumbBuilder implements BreadcrumbBuilderInterface {
$nid = $attributes->getRawParameters()->get('node');
if (!empty($nid)) {
$node = $this->nodeStorage->load($nid);
return (!empty($node) && $node->hasField($this->config->get('referenceField')) && !$node->get($this->config->get('referenceField'))->isEmpty());
return (!empty($node) && $node->hasField($this->config->get('referenceField')));
}
}

Loading…
Cancel
Save