Admin: Fix user record couldn't generate a title without account_id

This caused import of new users to fail.
This commit is contained in:
nathan 2024-05-03 08:45:41 -06:00
parent e880479099
commit f568930a90
1 changed files with 2 additions and 1 deletions

View File

@ -81,7 +81,8 @@ class admin_egw_user_record implements importexport_iface_egw_record
*@return string title
*/
public function get_title() {
return Api\Accounts::username($this->identifier);
return $this->identifier ? Api\Accounts::username($this->identifier) :
Accounts::format_username($this->account_lid, $this->account_firstname, $this->account_lastname, $this->identifier);
}
/**