Results 1 to 5 of 5

Thread: Enhanced Search Plugin Problem w/deleted records

  1. #1
    gyromind is offline Junior Member
    Join Date
    Apr 2008
    Posts
    3

    Default Enhanced Search Plugin Problem with deleted records

    After I installed Enhanced Search 2.0 on SugarCRM Version 5.0.0c (Build 3187) I was no longer able to search for cases marked with the deleted flag. I have about 50 cases that are deleted and nothing is showing up when the deleted field is checked and there are no other field values in the other search forms.

    I checked the log to see what the SQL query was like and it seemed to show a contradiction when it came to the deleted field. I'm assuming that it's some coding that needs to be changed somewhere in SearchForm2.php, unfortunately I'm not skilled enough in php to know what to change or add.

    Here is the query information with a search string of "FFXX", check out the cases.deleted stuff near the end:

    Code:
    SELECT cases.id , cases.case_number , cases.name , accounts.name account_name , accounts.assigned_user_id account_name_owner , 'Accounts' account_name_mod, cases.account_id , cases.priority , cases.status , cases.date_modified , jt1.user_name assigned_user_name , jt1.created_by assigned_user_name_owner , 'Users' assigned_user_name_mod, cases.assigned_user_id FROM cases LEFT JOIN accounts accounts ON
    accounts.id= cases.account_id AND accounts.deleted=0
    AND accounts.deleted=0 LEFT JOIN users jt1 ON
    jt1.id= cases.assigned_user_id AND jt1.deleted=0
    AND jt1.deleted=0 where ((cases.description like '%FFXX%' ) AND ( cases.deleted like '%1%')) AND cases.deleted=0 ORDER BY cases.case_number ASC LIMIT 0,21
    Last edited by gyromind; 2008-04-24 at 10:26 PM.

  2. #2
    kenshiro is offline Sugar Community Member
    Join Date
    Mar 2007
    Location
    Macerata - ITALY
    Posts
    421

    Default Re: Enhanced Search Plugin Problem w/deleted records

    I've found out that It's not an Enhanced Search bug, but a SugarCE 5.0.0c one.
    You can verify it by yourself by uninstalling Enahnced Search and searching again, or by re-installing SugarCRM 5.0.0c.
    I've started this thread where I've posted the bug fix.

  3. #3
    gyromind is offline Junior Member
    Join Date
    Apr 2008
    Posts
    3

    Default Re: Enhanced Search Plugin Problem w/deleted records

    Thank you for your help with this. Sorry I didn't realize it was an existing issue. Worked great.

  4. #4
    gguillote is offline Member
    Join Date
    Jun 2008
    Posts
    9

    Default Re: Enhanced Search Plugin Problem w/deleted records

    Quote Originally Posted by gyromind
    Thank you for your help with this. Sorry I didn't realize it was an existing issue. Worked great.
    Hello!
    I’ve installed Enhanced-Search 2.1.2 in my SugarCrm CE 5.0.0e (Standard) and when I click in Accounts/Contacts Module SugarCrm shows me the following errors:

    Notice: Undefined index: id_basic in C:\Archivos de programa\Apache Group\Apache2\htdocs\SugarCrm\include\SearchForm\S earchForm2.php on line 323
    Notice: Undefined index: name_basic in C:\Archivos de programa\Apache Group\Apache2\htdocs\SugarCrm\include\SearchForm\S earchForm2.php on line 323
    Notice: Undefined index: date_entered_basic in C:\Archivos de programa\Apache Group\Apache2\htdocs\SugarCrm\include\SearchForm\S earchForm2.php on line 323
    Notice: Undefined index: date_modified_basic in C:\Archivos de programa\Apache Group\Apache2\htdocs\SugarCrm\include\SearchForm\S earchForm2.php on line 323
    …………..
    Notice: Undefined index: sync_contact_upperbound in C:\Archivos de programa\Apache Group\Apache2\htdocs\SugarCrm\include\SearchForm\S earchForm2.php on line 333
    Notice: Undefined index: sync_contact_OR in C:\Archivos de programa\Apache Group\Apache2\htdocs\SugarCrm\include\SearchForm\S earchForm2.php on line 333
    Notice: Undefined index: sync_contact_NOT in C:\Archivos de programa\Apache Group\Apache2\htdocs\SugarCrm\include\SearchForm\S earchForm2.php on line 333
    Notice: Undefined index: sync_contact_OPER in C:\Archivos de programa\Apache Group\Apache2\htdocs\SugarCrm\include\SearchForm\S earchForm2.php on line 333

    Do you know the causes of these errors? Did I forget anything to config previously?

    Thank you very much for your feedback.
    Regards.
    Guillermo

  5. #5
    kenshiro is offline Sugar Community Member
    Join Date
    Mar 2007
    Location
    Macerata - ITALY
    Posts
    421

    Default Re: Enhanced Search Plugin Problem w/deleted records

    Hi,
    it's a known bug due to the E_NOTICE php flag set to on.

    I'm fixing it in the next Enhanced Search release.
    In the meantime you can try to switch it to off if you can.

    Thank you for your feedback.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. export ‘checked’ records problem
    By yh924 in forum Classifieds
    Replies: 6
    Last Post: 2006-02-14, 06:24 AM
  2. Problem with Search
    By nguyenth in forum Help
    Replies: 3
    Last Post: 2005-09-22, 11:33 AM
  3. Search Contacts Problem
    By willisbueller in forum Help
    Replies: 1
    Last Post: 2005-08-16, 09:49 PM
  4. Problem with advanced Search
    By DanPowers in forum Developer Help
    Replies: 0
    Last Post: 2005-02-01, 01:38 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
  •