浏览代码

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

feature/souke
Guillaume Bourgeois 11 个月前
父节点
当前提交
6a49818d3f
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. +4
    -1
      common/logic/User/User/Service/UserSolver.php

+ 4
- 1
common/logic/User/User/Service/UserSolver.php 查看文件

@@ -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;

正在加载...
取消
保存