@@ 67-71 (lines=5) @@ | ||
64 | 'force_join' => array('Transaction', 'Ticket', 'Attendee'), |
|
65 | 'caps' => \EEM_Base::caps_read_admin, |
|
66 | ), $event_id); |
|
67 | if ($event_id) { |
|
68 | $query_params[0]['EVT_ID'] = $event_id; |
|
69 | } else { |
|
70 | $query_params['force_join'][] = 'Event'; |
|
71 | } |
|
72 | } |
|
73 | if (! isset($query_params['force_join'])) { |
|
74 | $query_params['force_join'] = array('Event', 'Transaction', 'Ticket', 'Attendee'); |
|
@@ 516-520 (lines=5) @@ | ||
513 | public function count_units_to_process($event_id) |
|
514 | { |
|
515 | // use the legacy filter |
|
516 | if ($event_id) { |
|
517 | $query_params[0]['EVT_ID'] = $event_id; |
|
518 | } else { |
|
519 | $query_params['force_join'][] = 'Event'; |
|
520 | } |
|
521 | return \EEM_Registration::instance()->count($query_params); |
|
522 | } |
|
523 |
@@ 394-398 (lines=5) @@ | ||
391 | ), |
|
392 | $event_id |
|
393 | ); |
|
394 | if ($event_id) { |
|
395 | $query_params[0]['EVT_ID'] = $event_id; |
|
396 | } else { |
|
397 | $query_params['force_join'][] = 'Event'; |
|
398 | } |
|
399 | $registration_rows = $reg_model->get_all_wpdb_results($query_params); |
|
400 | // get all questions which relate to someone in this group |
|
401 | $registration_ids = array(); |