@@ 353-357 (lines=5) @@ | ||
350 | ), |
|
351 | $event_id |
|
352 | ); |
|
353 | if( $event_id ){ |
|
354 | $query_params[0]['EVT_ID'] = $event_id; |
|
355 | }else{ |
|
356 | $query_params[ 'force_join' ][] = 'Event'; |
|
357 | } |
|
358 | $registration_rows = $reg_model->get_all_wpdb_results( $query_params ); |
|
359 | //get all questions which relate to someone in this group |
|
360 | $registration_ids = array(); |
@@ 69-73 (lines=5) @@ | ||
66 | 'force_join' => array('Transaction', 'Ticket', 'Attendee'), |
|
67 | 'caps' => \EEM_Base::caps_read_admin, |
|
68 | ), $event_id); |
|
69 | if ($event_id) { |
|
70 | $query_params[0]['EVT_ID'] = $event_id; |
|
71 | } else { |
|
72 | $query_params['force_join'][] = 'Event'; |
|
73 | } |
|
74 | } |
|
75 | if ( ! isset($query_params['force_join'])) { |
|
76 | $query_params['force_join'] = array('Event', 'Transaction', 'Ticket', 'Attendee'); |
|
@@ 423-427 (lines=5) @@ | ||
420 | public function count_units_to_process($event_id) |
|
421 | { |
|
422 | //use the legacy filter |
|
423 | if ($event_id) { |
|
424 | $query_params[0]['EVT_ID'] = $event_id; |
|
425 | } else { |
|
426 | $query_params['force_join'][] = 'Event'; |
|
427 | } |
|
428 | return \EEM_Registration::instance()->count($query_params); |
|
429 | } |
|
430 |