Results 1 to 3 of 3

Thread: Query relation error in Tasks searchs

  1. #1
    delonix is offline Member
    Join Date
    Feb 2007
    Posts
    6

    Default Query relation error in Tasks searchs

    My Sugar CE 5.0 is not quering Tasks properly, when I use the field "Relatade to". I have noticed the resulting query uses the following filter:

    "where ((tasks.parent_type like 'teste%')) AND tasks.deleted=0"

    Since parent_type is recorded with the value "Project" on my TASKS table, I think the relation between tables is not correct in the query. Maybe a JOIN on PROJECT table is missing, on fields parent_type and parent_id.

    My system is running with Sugar CE 5.0.0, Windows 2003, PHP 5.2.0 and MySQL 5.

    Is this a known issue?
    Last edited by delonix; 2008-02-06 at 04:23 PM. Reason: Typing error

  2. #2
    delonix is offline Member
    Join Date
    Feb 2007
    Posts
    6

    Default Re: Query relation error in Tasks searchs

    Nobody knows this weird situation?
    I will try to illustrate my doubt:



    As you can see, I have the field "Related to" on my basic search form. The task list shows a column called "Related to", too. So, if you take a look at this form, you can infer a relation between the form field and the list, and you can suppose you could to type, in field "Related to", some name listed on column "Related to". But that is not true. In the screen example above, a search for the string "EEE" returns none results. For a valid result, the user need to search for "Accounts", since this is the parent_type of the respective "Related to" listed.

    I want to know two things: I am missing or doing something wrong? (my poor english not included, please)
    Is there a simple way to fix this search behaviour? (I can do the needed SQL join for a perfect search, but I donīt know how to replace the original code).
    Last edited by delonix; 2008-02-12 at 11:11 AM. Reason: Image link changed

  3. #3
    clint's Avatar
    clint is offline Sugar Team Member | Forums Lead Moderator
    Join Date
    Aug 2004
    Location
    Silicon Valley
    Posts
    2,120

    Default Re: Query relation error in Tasks searchs

    This is definitely a bug. I created bug report #19811 to track the issue.
    Sugar Developer Zone - developer resources | Sugar University - user and admin training
    Sugar Docs - user and admin documentation |
    Sugar Bug Tracker - Enter or view bugs
    SugarForge- open source modules, themes, lang packs | SugarExchange - commercial extensions

    Clint Oram
    Chief Technology Officer and Co-founder
    SugarCRM

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 2006-10-20, 12:00 AM
  2. Upgrade from Open Source to Professional
    By Sohonet in forum General Discussion
    Replies: 1
    Last Post: 2006-06-12, 09:23 PM
  3. SugarCrm 4.0 Patch
    By mgamboa in forum General Discussion
    Replies: 0
    Last Post: 2005-12-21, 04:14 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
  •