Removed debugging code and changed default name of organisation relation

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

View File

@ -107,7 +107,7 @@ class OCOrganisationRelation extends ContentEntityBase implements OCOrganisation
'max_length' => 50,
'text_processing' => 0,
])
->setDefaultValue('Link between organisations')
->setDefaultValue('Link')
->setRequired(TRUE);
$fields['created'] = BaseFieldDefinition::create('created')

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;