|
@@ 312-320 (lines=9) @@
|
| 309 |
|
debug_write_log(DEBUG_WARNING, '[records_list] Unknown filter type = ' . $filter['filter_type']); |
| 310 |
|
} |
| 311 |
|
|
| 312 |
|
if ($filter['filter_flags'] & FILTER_FLAG_CREATED_BY) |
| 313 |
|
{ |
| 314 |
|
array_push($clause_select, 'r.creator_id'); |
| 315 |
|
array_push($clause_filter, |
| 316 |
|
'r.creator_id in ' . |
| 317 |
|
'(select account_id ' . |
| 318 |
|
'from tbl_filter_accounts ' . |
| 319 |
|
'where filter_id = ' . $filter['filter_id'] . ' and filter_flag = ' . FILTER_FLAG_CREATED_BY . ')'); |
| 320 |
|
} |
| 321 |
|
|
| 322 |
|
if ($filter['filter_flags'] & FILTER_FLAG_ASSIGNED_TO) |
| 323 |
|
{ |
|
@@ 322-330 (lines=9) @@
|
| 319 |
|
'where filter_id = ' . $filter['filter_id'] . ' and filter_flag = ' . FILTER_FLAG_CREATED_BY . ')'); |
| 320 |
|
} |
| 321 |
|
|
| 322 |
|
if ($filter['filter_flags'] & FILTER_FLAG_ASSIGNED_TO) |
| 323 |
|
{ |
| 324 |
|
array_push($clause_select, 'r.responsible_id'); |
| 325 |
|
array_push($clause_filter, |
| 326 |
|
'r.responsible_id in ' . |
| 327 |
|
'(select account_id ' . |
| 328 |
|
'from tbl_filter_accounts ' . |
| 329 |
|
'where filter_id = ' . $filter['filter_id'] . ' and filter_flag = ' . FILTER_FLAG_ASSIGNED_TO . ')'); |
| 330 |
|
} |
| 331 |
|
|
| 332 |
|
if ($filter['filter_flags'] & FILTER_FLAG_UNASSIGNED) |
| 333 |
|
{ |