@@ 1856-1860 (lines=5) @@ | ||
1853 | $dtts = array(); |
|
1854 | ||
1855 | //if empty _REG_ID then get out because there's nothing to do |
|
1856 | if ( empty( $this->_req_data['_REG_ID'] ) ) { |
|
1857 | $msg = $trash ? __('In order to trash registrations you must select which ones you wish to trash by clicking the checkboxes.', 'event_espresso') : __('In order to restore registrations you must select which ones you wish to restore by clicking the checkboxes.', 'event_espresso'); |
|
1858 | EE_Error::add_error( $msg, __FILE__, __LINE__, __FUNCTION__ ); |
|
1859 | $this->_redirect_after_action(FALSE, '', '', array(), TRUE ); |
|
1860 | } |
|
1861 | ||
1862 | //Checkboxes |
|
1863 | if (!empty($this->_req_data['_REG_ID']) && is_array($this->_req_data['_REG_ID'])) { |
|
@@ 2499-2503 (lines=5) @@ | ||
2496 | protected function _duplicate_attendee() { |
|
2497 | $action = !empty( $this->_req_data['return'] ) ? $this->_req_data['return'] : 'default'; |
|
2498 | //verify we have necessary info |
|
2499 | if ( empty($this->_req_data['_REG_ID'] ) ) { |
|
2500 | EE_Error::add_error( __('Unable to create the contact for the registration because the required paramaters are not present (_REG_ID )', 'event_espresso'), __FILE__, __LINE__, __FUNCTION__ ); |
|
2501 | $query_args = array( 'action' => $action ); |
|
2502 | $this->_redirect_after_action('', '', '', $query_args, TRUE); |
|
2503 | } |
|
2504 | ||
2505 | //okay necessary deets present... let's dupe the incoming attendee and attach to incoming registration. |
|
2506 | $registration = EEM_Registration::instance()->get_one_by_ID( $this->_req_data['_REG_ID'] ); |