From f568930a903cc787977bb0e68f5db030f3a34bb3 Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 3 May 2024 08:45:41 -0600 Subject: [PATCH] Admin: Fix user record couldn't generate a title without account_id This caused import of new users to fail. --- admin/inc/class.admin_egw_user_record.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/inc/class.admin_egw_user_record.inc.php b/admin/inc/class.admin_egw_user_record.inc.php index d681255731..7459c8ad25 100644 --- a/admin/inc/class.admin_egw_user_record.inc.php +++ b/admin/inc/class.admin_egw_user_record.inc.php @@ -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); } /**