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

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

parent df3b9166
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[$key] = $this->getColors($priority,$field->getName());
}
} else {
$colors = $request->get('colors');
......@@ -107,11 +107,11 @@ 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)){
$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');
......
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