vtiger Forum Index vtiger
The Honest Open Source CRM
 

User default Calendar Date-Range not used
Click here to go to the original topic

 
       vtiger Forum Index -> Code Contributions - 5.0.2
Previous topic :: Next topic  
Author Message
dartagnanlaf



Joined: 21 Sep 2006
Posts: 12

Posted: Thu Sep 21, 2006 2:20 pm    Post subject: User default Calendar Date-Range not used  

Bug: User Calendar Date-range Default not working.
Error: Default preference is in User object, but never checked
Solution: Slight code modification in Calendar/new_calendar.php

Original

Code: if(empty($mysel))
{
        $mysel = 'day';
}

Edited
Code:
if(empty($mysel)){
            if($current_user->activity_view == "This Year"){
                        $mysel = 'year';
            }else if($current_user->activity_view == "This Month"){
                        $mysel = 'month';
            }else if($current_user->activity_view == "This Week"){
                        $mysel = 'week';
            }else{
                        $mysel = 'day';
            }
}
Back to top  
firstarticle



Joined: 07 Oct 2005
Posts: 25
Location: Western PA, USA

Posted: Thu Sep 21, 2006 8:38 pm    Post subject: Re: User default Calendar Date-Range not used  

This works perfectly so far. I have been trying to find the solution since the GA came out. I was looking in all the wrong places. Never thought to look at new_calendar. Thanks.
Back to top  
minnie



Joined: 06 Sep 2005
Posts: 299
Location: CHENNAI,INDIA

Posted: Wed Sep 27, 2006 6:57 am    Post subject: Re: User default Calendar Date-Range not used  

Dear dartagnanlaf,

Thank you for your code. I've created a ticket for this(Ref:http://vtiger.fosslabs.com/cgi-bin/trac.cgi/ticket/2259#preview). let you know once I've integrated it.

Thanks & Regards,
Minnie.
Back to top  
 
       vtiger Forum Index -> Code Contributions - 5.0.2
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.15 © 2001, 2002 phpBB Group