Skip to content

Commit a7ec88c

Browse files
committed
Fix update of color when using HTML5
1 parent 8d63609 commit a7ec88c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

htdocs/user/class/user.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2159,7 +2159,7 @@ public function update($user, $notrigger = 0, $nosyncmember = 0, $nosyncmemberpa
21592159

21602160
$this->accountancy_code_user_general = trim((string) $this->accountancy_code_user_general);
21612161
$this->accountancy_code = trim((string) $this->accountancy_code);
2162-
$this->color = trim((string) $this->color);
2162+
$this->color = trim(str_replace('#', '', (string) $this->color));
21632163
$this->dateemployment = empty($this->dateemployment) ? '' : $this->dateemployment;
21642164
$this->dateemploymentend = empty($this->dateemploymentend) ? '' : $this->dateemploymentend;
21652165

0 commit comments

Comments
 (0)