View organization's incidents along with own incidents
Content
I'm using a "pre_report_get" hook and trying to apply a filter that accepts multiple values. The problem is that I'm not able to figure out the correct format in which the filter values need to be passed. The code I'm using as follows:
function applyInstituteFilter(&$hookData)
{
$reportID = $hookData['data']['reportId'];
if($hookData['data']['reportId'] == 100520)
{
$insFilter = $this->CI->model('Report')->getFilterByName($reportID, 'ins_ids')->result;
if(!$hookData['data']['filters']['ins_ids']){
$ins_filter = $this->CI->model('Report')->createSearchFilter($reportID, $insFilter['name'], $insFilter['fltr_id'], 1, 'custom', $insFilter['oper_id'])->result;
0