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);


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks