Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: always ask for Time Zone (before 4.5.1e update)

  1. #1
    rgurgel is offline Sugar Community Member
    Join Date
    Nov 2005
    Location
    São Paulo - Brasil
    Posts
    13

    Default always ask for Time Zone (before 4.5.1e update)

    Hi people,

    I had update sugarcrm from 4.5.1d to 4.5.1e and now sugar always ask for user time zone before login.

    I believe that happening for all users that ask for "Reset To Default Preferences" option on "My Account" Tab

    sugarcrm... to be or not to be. too bugs to not so free.

  2. #2
    default is offline Sugar Community Member
    Join Date
    Jun 2007
    Posts
    102

    Default Re: always ask for Time Zone (before 4.5.1e update)

    that is realy the process..
    Last edited by default; 2011-03-17 at 04:47 PM.

  3. #3
    julian's Avatar
    julian is offline Sugar Team Member
    Join Date
    Sep 2004
    Posts
    1,639

    Default Re: always ask for Time Zone (before 4.5.1e update)

    Hello rgurgel,

    Are you saying that it only asks users to set their time zone after you click the "Reset To Default Preferences" link for them? This is expected behavior.

    If Sugar is prompting your users to reset their time zone each time they login, even if they have not clicked "Reset To Default Preferences", then there's a bug we should look into.

    Thanks,
    Julian Ostrow
    Systems and Applications Engineer
    SugarCRM Inc.

  4. #4
    rgurgel is offline Sugar Community Member
    Join Date
    Nov 2005
    Location
    São Paulo - Brasil
    Posts
    13

    Default Re: always ask for Time Zone (before 4.5.1e update)

    Quote Originally Posted by julian
    Hello rgurgel,

    Are you saying that it only asks users to set their time zone after you click the "Reset To Default Preferences" link for them? This is expected behavior.

    If Sugar is prompting your users to reset their time zone each time they login, even if they have not clicked "Reset To Default Preferences", then there's a bug we should look into.

    Thanks,
    No, I'm saying that not stop to ask (all time that i login, sugar asks)... But I believe that occours after 1 time I ask to "Reset to Default..."

  5. #5
    ndaniels is offline Sugar Community Member
    Join Date
    Nov 2006
    Posts
    24

    Default Re: always ask for Time Zone (before 4.5.1e update)

    I'm seeing similar problem - for some (not all) users after they do "Reset to Default Preferences" they are asked to confirm time zone on every login, not just the first. Additionally the new preferences which they select after login are not saved - are not visible on the next login (after confirming timezone again).
    Where in the db is the flag for 'user is ok, don't ask for timezone, save preferences' ??? I'm willing to manually set that as needed for now....
    Thoughts?

  6. #6
    simple is offline Sugar Community Member
    Join Date
    Jul 2005
    Posts
    259

    Default Re: always ask for Time Zone (before 4.5.1e update)

    In the file module/UserPreferences/UserPreference.php on about line 280 we had to change

    Code:
    				if(!empty($row['id'])) { // update
    					$focus->retrieve($row['id']);
    					$focus->deleted = 0;
    					$focus->contents = base64_encode(serialize($contents));
    				}
    to

    Code:
    				if(!empty($row['id'])) { // update
    					$focus->assigned_user_id = $user->id;
    					$focus->retrieve($row['id'], true, false);
    					$focus->deleted = 0;
    					$focus->contents = base64_encode(serialize($contents));
    				}

    Hope this solves your problem too. Check if you have entries in the user_preferences table which don't have an assigned_user_id.
    Last edited by simple; 2007-08-15 at 03:31 PM.
    Cheers Pascal
    Simplicity GmbH

  7. #7
    gneill794 is offline Sugar Community Member
    Join Date
    Mar 2007
    Location
    Papillion, NE
    Posts
    32

    Default Re: always ask for Time Zone (before 4.5.1e update)

    Simple,

    Would you recommend the entries in user_preferences which have no assigned_user_id's be deleted from the DB?

    Thanks,
    George.

  8. #8
    simple is offline Sugar Community Member
    Join Date
    Jul 2005
    Posts
    259

    Default Re: always ask for Time Zone (before 4.5.1e update)

    We did not delete them. But if you have a lot of these entries, you may delete them. I do not think that this will cause any problems.
    Cheers Pascal
    Simplicity GmbH

  9. #9
    gneill794 is offline Sugar Community Member
    Join Date
    Mar 2007
    Location
    Papillion, NE
    Posts
    32

    Default Re: always ask for Time Zone (before 4.5.1e update)

    Simple,

    I did this,

    Code:
    UPDATE user_preferences SET deleted = 1 WHERE assigned_user_id = '';
    ... and everything still seems to be working just fine.

    Thanks,
    George.

  10. #10
    ndaniels is offline Sugar Community Member
    Join Date
    Nov 2006
    Posts
    24

    Default Re: always ask for Time Zone (before 4.5.1e update)

    Thanks, Simple - your fix works perfectly. We've applied to our test system and to our production system and now we have happier users.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 2007-06-16, 02:20 PM
  2. Mass Update Customisation
    By duncanb in forum Developer Help
    Replies: 4
    Last Post: 2007-05-16, 06:17 AM
  3. Mass Update won't work!
    By rsantiago in forum Help
    Replies: 6
    Last Post: 2006-08-18, 02:54 AM
  4. Upgrade from Open Source to Professional
    By Sohonet in forum General Discussion
    Replies: 1
    Last Post: 2006-06-12, 09:23 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •