<div dir="ltr">Hi All,<div><br></div><div>I've noticed a bug in when querying a one to many relationship.</div><div><br></div><div>For example;</div><div><br></div><div>If I generate a report based on a contact record and its calendar events, even though the query is left join on vtiger_activity where activitytype != 'Emails' it also left joins on vtiger_seactivityrel because this is a left join and one to many it productises the query result and reproduces a NULL line value for the calendar event. SO i.e. I have one call and one email linked to the client my result would be.</div>
<div><br></div><div>Firstname      Last Name          Calendar Subject</div><div>John                   doe                        Call</div><div>John                   doe                         --<br></div><div><br></div>
<div>It should also query the left join vtiger_seactivityrel to activity where activitytype != 'Emails' or something to that effect cannot use inner join as if no results turned up for the calendar the contact would not appear on the report.</div>
<div><br></div><div>Regards,</div><div><br></div><div>Danny</div></div>