Removed debugging code and changed default name of organisation relation

This commit is contained in:
2021-09-03 11:11:02 +02:00
parent 42bf2c8e77
commit b1a8534d29
2 changed files with 1 additions and 2 deletions

View File

@ -23,7 +23,6 @@ class EntityReferenceCurrentTargetExcluder extends EntityReferenceLabelFormatter
foreach($items as $delta=>$item) {
$current_org = \Drupal::routeMatch()->getParameter('oc_organisation')->id();
$item_target_id = $item->get('target_id')->getValue();
\Drupal::logger("foo")->error($current_org . " " . $item_target_id);
if ($current_org == $item_target_id) {
$items->removeItem($delta);
break;