Results 1 to 4 of 4

Thread: Not able to save User preferences

  1. #1
    skumar25dec is offline Member
    Join Date
    Apr 2007
    Posts
    5

    Default Not able to save User preferences

    Hi,

    I have added one field in user module. For that I created the 'custom/modules/Users' folder and modified as required. Things are working fine except user preferences is not saving.

    I tracked the issue and find that modules/Users/save.php is redirecting the page after saving the records for User table and preferences table. If I comment out the redirect part the preference saving start working.

    Anyone have any clue what's going wrong ? I am using sugarCE 5.2.0d with SQL server2005 and IIS6. OS Windows 2003 Server. Php 5.2.9.

    Thanks,
    Sumit

  2. #2
    dekleinemedia is offline A Prolific Poster
    Join Date
    May 2009
    Location
    Netherlands
    Posts
    241

    Default Re: Not able to save User preferences

    Quote Originally Posted by skumar25dec View Post
    Hi,

    I have added one field in user module. For that I created the 'custom/modules/Users' folder and modified as required. Things are working fine except user preferences is not saving.

    I tracked the issue and find that modules/Users/save.php is redirecting the page after saving the records for User table and preferences table. If I comment out the redirect part the preference saving start working.

    Anyone have any clue what's going wrong ? I am using sugarCE 5.2.0d with SQL server2005 and IIS6. OS Windows 2003 Server. Php 5.2.9.

    Thanks,
    Sumit

    Hi,

    Maybe you can post your code for "redirect" so we can take a look.
    Kind regards,

    De Kleine Media


    SugarCRM CE v.5.2.0h
    Windows platform
    MySQL v.5.1
    phpMyAdmin - 2.11.2.2
    Apache Server v.2.0

  3. #3
    skumar25dec is offline Member
    Join Date
    Apr 2007
    Posts
    5

    Default Re: Not able to save User preferences

    Hi dekleinemedia,

    It is Sugar default code, You can find it in 'modules/Users/Save.php'

    ---
    $redirect = "index.php?action={$return_action}&module={$return _module}&record={$return_id}";
    $redirect .= isset($_REQUEST['type']) ? "&type={$_REQUEST['type']}" : ''; // cn: bug 6897 - detect redirect to Email compose
    $redirect .= isset($_REQUEST['return_id']) ? "&return_id={$_REQUEST['return_id']}" : '';
    header("Location: {$redirect}");

    --

    Thanks for reply.

    Sumit.

  4. #4
    skumar25dec is offline Member
    Join Date
    Apr 2007
    Posts
    5

    Default Re: Not able to save User preferences

    Hi,

    Any help??

    Thanks in advance.

    Sumit

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. User preferences
    By jonnywatson in forum Help
    Replies: 11
    Last Post: 2008-07-15, 08:40 AM
  2. Sugar losing user preferences
    By mikesolomon in forum Help
    Replies: 1
    Last Post: 2008-04-04, 09:51 AM
  3. subpaneldefs.php versus user preferences.
    By arisjr in forum Developer Help
    Replies: 0
    Last Post: 2008-02-15, 10:07 AM
  4. User preferences not saved
    By dromin in forum Help
    Replies: 1
    Last Post: 2006-04-07, 12:41 PM
  5. 'Order by' and user preferences
    By rajubitter in forum Developer Help
    Replies: 2
    Last Post: 2005-07-29, 01:59 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
  •