From ddb1fd42fccc909e7b837f1cfbee2501920078df Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 9 Nov 2025 02:40:40 +0100 Subject: [PATCH] Fix update of color when using HTML5 --- htdocs/user/class/user.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/user/class/user.class.php b/htdocs/user/class/user.class.php index 6610c05706a..2b72f4ea5d7 100644 --- a/htdocs/user/class/user.class.php +++ b/htdocs/user/class/user.class.php @@ -2159,7 +2159,7 @@ class User extends CommonObject $this->accountancy_code_user_general = trim((string) $this->accountancy_code_user_general); $this->accountancy_code = trim((string) $this->accountancy_code); - $this->color = trim((string) $this->color); + $this->color = trim(str_replace('#', '', (string) $this->color)); $this->dateemployment = empty($this->dateemployment) ? '' : $this->dateemployment; $this->dateemploymentend = empty($this->dateemploymentend) ? '' : $this->dateemploymentend;