Fixed theme function issue after creating entity, and remove "(Client)" etc from name finally!

This commit is contained in:
2021-08-26 18:58:25 +01:00
parent 436607a305
commit 3586ef5788
2 changed files with 10 additions and 19 deletions

View File

@ -122,7 +122,6 @@ class OCActor extends RevisionableContentEntityBase implements OCActorInterface
if ($this->get('middle_names')->value) $name .= $this->get('middle_names')->value . ' ';
$name .= $this->get('last_name')->value . ' ';
}
$name .= '(' . $this->type->entity->label() . ')';
$this->setName($name);