[Vtigercrm-developers] vTiger 4.2.3 Calendar bugfix.

Mike Fedyk mfedyk at mikefedyk.com
Tue Apr 18 15:34:42 PDT 2006


Can you make a unified diff with winmerge and attach it to a ticket with 
a milestone of 4.2.5?

Mike

Josh Lee wrote:
> 4.2.3 Bugfix for calendar
>
> calendar month around line 236
>
>        else
>        { // day overlaps by Fredy
>            if ( $today == Date("Ymd",$ts)){
>                $col = "ol-today";
>            }
>            else if ($wd == 6) {
>                $col = "ol-holiday";
>            }
>          else if ($wd == 5) {
>             $col = "ol-freeday";
>                }
>            else if ($xm != $m ) {
>                $col = "ol-otherday";
>            }
>            else  {
>                $col = "ol-appday";
>            }
>        }
>
>
> Josh Lee wrote:
>
>> Bugfix.  There was a problem with uneven number of fields in detail 
>> view.
>> Simple probelm simple fix.
>>
>> includes/utils/DetailViewUtils.php
>> At the bottom of the file change this:
>>
>>    for ($i=0,$j=0;$i<count($label_data);$i=$i+2,$j++)
>>    {
>>        $keys=array_keys($label_data[$i]);
>>                $key1=$keys[0];
>>        if(is_array($label_data[$i+1]))
>>        {
>>                    $keys=array_keys($label_data[$i+1]);
>>                    $key2=$keys[0];
>>        }
>>        $return_data[$j]=array($key1 => $label_data[$i][$key1],$key2 
>> => $label_data[$i+1][$key2]);
>>    }
>>    return $return_data;
>>
>>
>> To this:
>>
>>    for ($i=0,$j=0;$i<count($label_data);$i=$i+2,$j++)
>>    {
>>       // jlee added two lines to fix bug
>>        $key1 = null;
>>        $key2 = null;
>>       // Done adding
>>        $keys=array_keys($label_data[$i]);
>>                $key1=$keys[0];
>>        if(is_array($label_data[$i+1]))
>>        {
>>                    $keys=array_keys($label_data[$i+1]);
>>                    $key2=$keys[0];
>>        }
>>        $return_data[$j]=array($key1 => $label_data[$i][$key1],$key2 
>> => $label_data[$i+1][$key2]);
>>    }
>>    return $return_data;
>>
>>
>> Hope this helps!
>>
>> _______________________________________________
>> This vtiger.com email is sponsored by Zoho Planner. Still scribbling 
>> down your To-Do's on bits of paper & palms of your hands? Try the 
>> AJAX enabled, personal organizer online, Zoho Planner for FREE 
>> instead! http://zohoplanner.com/?vt
>
>
> _______________________________________________
> This vtiger.com email is sponsored by Zoho Planner. Still scribbling down your To-Do's on bits of paper & palms of your hands? Try the AJAX enabled, personal organizer online, Zoho Planner for FREE instead! http://zohoplanner.com/?vt 




More information about the vtigercrm-developers mailing list