Actor name field is now set to full name on save
This commit is contained in:
parent
76f61b16b7
commit
900ba263c7
@ -115,6 +115,12 @@ class OCActor extends RevisionableContentEntityBase implements OCActorInterface
|
||||
}
|
||||
}
|
||||
|
||||
$name = $this->get('first_name') ->value . ' ';
|
||||
if ($this->get('middle_names')->value) $name .= $this->get('middle_names')->value . ' ';
|
||||
$name .= $this->get('last_name')->value;
|
||||
|
||||
$this->setName($name);
|
||||
|
||||
// If no revision author has been set explicitly, make the oc_actor owner the
|
||||
// revision author.
|
||||
if (!$this->getRevisionUser()) {
|
||||
|
Reference in New Issue
Block a user