<div dir="ltr">We will update you once we review this problem<div>Thanks</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 7, 2014 at 6:09 AM, johnnyrockets <span dir="ltr"><<a href="mailto:johnb@newsreview.com" target="_blank">johnb@newsreview.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Greetings all.  First of all, fantastic work on Vtiger 6.1 thus far.  We're<br>
eagerly awaiting the upcoming release.<br>
<br>
We're noticing an issue when it comes to searching or filtering using the<br>
assigned_to field.  The following steps will reproduce the problem.  Note:<br>
two users assigned to the same role will be necessary.<br>
<br>
    1) Create a new organization with User1.<br>
    2) Go to Organization module.<br>
    3) Transfer ownership of new organization to User2 (everything, all<br>
contacts, documents, etc).<br>
    4) Logout and log back in with User2.<br>
    5) Go to the Organization module and filter the results using the<br>
assigned_to text field (set it to User2).  Click search button.<br>
<br>
The newly created organization that was just transferred to User2 doesn't<br>
appear.<br>
<br>
Upon further investigation, it appears that the sql being executed is<br>
searching for the creator, instead of the owner.<br>
<br>
SELECT<br>
    count(*) AS count<br>
FROM<br>
    vtiger_contactdetails<br>
        INNER JOIN<br>
    vtiger_crmentity ON vtiger_contactdetails.contactid =<br>
vtiger_crmentity.crmid<br>
        LEFT JOIN<br>
    vtiger_users ON vtiger_crmentity.smcreatorid = <a href="http://vtiger_users.id" target="_blank">vtiger_users.id</a><br>
        LEFT JOIN<br>
    vtiger_groups ON vtiger_crmentity.smcreatorid = vtiger_groups.groupid<br>
WHERE<br>
    vtiger_crmentity.deleted = 0 AND (((trim(CONCAT(vtiger_users.first_name,<br>
                ' ',<br>
                vtiger_users.last_name)) LIKE '%Gil Gunderson%' or<br>
vtiger_groups.groupname LIKE '%Gil Gunderson%')))<br>
<br>
We are not completely up to date with the 6.1 branch so I'm not sure if this<br>
issue has already been addressed and/or handled.  Please let me know if more<br>
information is needed or if there is a known solution to this problem.<br>
<br>
Thanks,<br>
John Biz<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtiger-crm.2324883.n4.nabble.com/Problem-filtering-by-assigned-to-search-field-tp11761.html" target="_blank">http://vtiger-crm.2324883.n4.nabble.com/Problem-filtering-by-assigned-to-search-field-tp11761.html</a><br>

Sent from the vtigercrm-developers mailing list archive at Nabble.com.<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div><br></div>