Results 1 to 4 of 4

Thread: get_linked_beans bug in sugar 6.3.0

  1. #1
    guest_23 is offline Sugar Community Member
    Join Date
    Apr 2011
    Posts
    11

    Default get_linked_beans bug in sugar 6.3.0

    hello,

    i updated from sugar version 6.2.4 to 6.3.0. before the update i used the optional_where parameter of the get_linked_beans function to only retrieve specific contacts for an account. Now, after the update, the optional_where parameter does not work anymore. For instance, all contacts are retrieved for an account even though i specified a certain condition (for instance contact id) in the optional_where parameter of the get_linked_beans function.
    I tested the same code with sugar version 6.2.4 where it works fine. I also tested the parameter in different modules with the same results.
    Does anybody experience the same problem? Does anybody know how to fix this bug?

    Thanks!


    Example code:

    $account = new Account();
    $account->retrieve('87698ef4-7985-9078-9da3-4e96f0d675d0');

    $optional_where = array(
    'lhs_field' => 'id',
    'operator' => ' LIKE ',
    'rhs_value' => '18b7110b-0757-a577-d695-4ecb66e22a82',
    );

    $contacts = $account->get_linked_beans('contacts', 'Contact',array(), 0, -1, 0, $optional_where);

    print_r($contacts);

  2. #2
    guest_23 is offline Sugar Community Member
    Join Date
    Apr 2011
    Posts
    11

    Default Re: get_linked_beans bug in sugar 6.3.0

    i would really appreciate any help! is knowbody experiencing the same bug? is there a way to get in direct contact with the developer team so the bug will be noticed?

  3. #3
    MissAran is offline Sugar Community Member
    Join Date
    Jul 2010
    Posts
    24

    Default Re: get_linked_beans bug in sugar 6.3.0

    I have found this bug logged in the bug tracker.

    Bug Portal | SugarCRM.com

    States its been fixed but only in 6.5.1
    Since 6.5 is still on RC I bet you don't want to upgrade the instance to that just yet. But perhaps compare the files in the Link.php and SugarBean.php and see the major differences because obviously this is a big piece of functionality it just happen to AWOL.

  4. #4
    guest_23 is offline Sugar Community Member
    Join Date
    Apr 2011
    Posts
    11

    Default Re: get_linked_beans bug in sugar 6.3.0

    Hello MissAran,
    I guess I have to wait until the 6.5 is GA.
    Thanks a lot for the info!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. sort order of get_linked_beans
    By mikesolomon in forum Developer Help
    Replies: 6
    Last Post: 2011-11-05, 11:25 AM
  2. Trouble using get_linked_beans() for Notes
    By tobydz in forum Developer Help
    Replies: 4
    Last Post: 2011-11-03, 01:44 AM
  3. get_linked_beans() with custom modules
    By mtudor in forum Developer Help
    Replies: 3
    Last Post: 2009-04-11, 03:34 PM
  4. get_linked_beans where clause
    By mikesolomon in forum Developer Tutorials
    Replies: 4
    Last Post: 2008-11-05, 08:05 AM

Tags for this Thread

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
  •