Browse Source

[Administration] Utilisateur : correctif affichage nom personne légale

feature/souke
Guillaume Bourgeois 11 months ago
parent
commit
6a49818d3f
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      common/logic/User/User/Service/UserSolver.php

+ 4
- 1
common/logic/User/User/Service/UserSolver.php View File



public function getUsername(User $user, $withType = false): string public function getUsername(User $user, $withType = false): string
{ {
if (isset($user->name_legal_person) && strlen($user->name_legal_person)) {
if ($this->isTypeLegalPerson($user)
&& isset($user->name_legal_person)
&& strlen($user->name_legal_person)) {

$username = $user->name_legal_person; $username = $user->name_legal_person;
} else { } else {
$username = $user->lastname . ' ' . $user->name; $username = $user->lastname . ' ' . $user->name;

Loading…
Cancel
Save