Przeglądaj źródła

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

feature/souke
Guillaume Bourgeois 11 miesięcy temu
rodzic
commit
6a49818d3f
1 zmienionych plików z 4 dodań i 1 usunięć
  1. +4
    -1
      common/logic/User/User/Service/UserSolver.php

+ 4
- 1
common/logic/User/User/Service/UserSolver.php Wyświetl plik

@@ -98,7 +98,10 @@ class UserSolver extends AbstractService implements SolverInterface

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;
} else {
$username = $user->lastname . ' ' . $user->name;

Ładowanie…
Anuluj
Zapisz