Results 1 to 3 of 3

Thread: Dropdown list empty when moving account_type from advanced search to basic search

  1. #1
    prai is offline Sugar Community Member
    Join Date
    May 2006
    Posts
    14

    Default Dropdown list empty when moving account_type from advanced search to basic search

    Hi. When I move account_type search field from advanced search panel to basic search panel for Accounts, the dropdown list shows up empty. Any clues why this might be happening and what do I need to do to fix it?

    Thanks in advance.

  2. #2
    wagnerbl is offline Sugar Community Member
    Join Date
    Apr 2005
    Posts
    330

    Default Re: Dropdown list empty when moving account_type from advanced search to basic search

    Quote Originally Posted by prai
    Hi. When I move account_type search field from advanced search panel to basic search panel for Accounts, the dropdown list shows up empty. Any clues why this might be happening and what do I need to do to fix it?

    Thanks in advance.
    You need to move this code
    PHP Code:
        if (isset($account_type)) $search_form->assign("ACCOUNT_TYPE_OPTIONS"get_select_options_with_id($app_list_strings['account_type_dom'], $account_type));
            else 
    $search_form->assign("ACCOUNT_TYPE_OPTIONS"get_select_options_with_id($app_list_strings['account_type_dom'], '')); 
    to before this one;
    PHP Code:
    if (isset($_REQUEST['advanced']) && $_REQUEST['advanced'] == 'true') { 

  3. #3
    prai is offline Sugar Community Member
    Join Date
    May 2006
    Posts
    14

    Default Re: Dropdown list empty when moving account_type from advanced search to basic search

    Thanks! I tried and it works.

Thread Information

Users Browsing this Thread

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

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
  •