CRM-13812 - fixed the broken query for activity search
Merge pull request #2079 from yashodha/CRM-13812

CRM-13812 - fixed the broken query for activity search