From 7f43483b7841c5aff188a7eef5deae68de76ed4e Mon Sep 17 00:00:00 2001 From: appu <apparao@vtiger.com> Date: Thu, 25 Jan 2024 18:28:45 +0530 Subject: [PATCH] Fixes::157349776::Glitches in the displaying in the pick list names in task management --- modules/Calendar/views/TaskManagement.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/Calendar/views/TaskManagement.php b/modules/Calendar/views/TaskManagement.php index 8081ef893..0ce822730 100644 --- a/modules/Calendar/views/TaskManagement.php +++ b/modules/Calendar/views/TaskManagement.php @@ -118,7 +118,8 @@ class Calendar_TaskManagement_View extends Vtiger_Index_View { } } if($color=='#ffffff' || empty($color)) { - $color = '#'.dechex(rand(0x000000, 0xFFFFFF)); + $color = '#' . str_pad(dechex(rand(0, 50)), 2, '0') . str_pad(dechex(rand(0, 50)), 2, '0') . str_pad(dechex(rand(0, 50)), 2, '0'); + } return $color; } -- GitLab