Skip to content
Snippets Groups Projects
Commit 1d74909b authored by Apparao G's avatar Apparao G
Browse files

#Fixes::Yogeswar::157349776::Glitches in the displaying in the pick list names in task management

parents df3b9166 83472736
No related branches found
No related tags found
No related merge requests found
......@@ -98,8 +98,8 @@ class Calendar_TaskManagement_View extends Vtiger_Index_View {
if (!$request->get('colors')) {
$colors = array();
foreach ($priorities as $key => $value) {
$colors[$key] = $this->getColors($key,$field->getName());
foreach ($priorities as $priority => $value) {
$colors[$priority] = $this->getColors($priority, $field->getName());
}
} else {
$colors = $request->get('colors');
......@@ -107,14 +107,14 @@ class Calendar_TaskManagement_View extends Vtiger_Index_View {
return $colors;
}
public function getColors($priorities,$fieldname){
public function getColors($priority, $fieldname){
$db=PearDatabase::getInstance();
if(isset($priorities)){
if(isset($priority)){
$tableName = "vtiger_$fieldname";
$result=$db->pquery("SELECT color FROM $tableName WHERE $fieldname=?",array($priorities));
$result=$db->pquery("SELECT color FROM $tableName WHERE $fieldname=?",array($priority));
$no_of_row=$db->num_rows($result);
for($i=0;$i<$no_of_row;$i++){
$color = $db->query_result($result,$i,'color');
$color = $db->query_result($result, $i, 'color');
}
}
if($color=='#ffffff' || empty($color)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment