|
@@ 1805-1809 (lines=5) @@
|
| 1802 |
|
$dtts = array(); |
| 1803 |
|
|
| 1804 |
|
//if empty _REG_ID then get out because there's nothing to do |
| 1805 |
|
if ( empty( $this->_req_data['_REG_ID'] ) ) { |
| 1806 |
|
$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'); |
| 1807 |
|
EE_Error::add_error( $msg, __FILE__, __LINE__, __FUNCTION__ ); |
| 1808 |
|
$this->_redirect_after_action(FALSE, '', '', array(), TRUE ); |
| 1809 |
|
} |
| 1810 |
|
|
| 1811 |
|
//Checkboxes |
| 1812 |
|
if (!empty($this->_req_data['_REG_ID']) && is_array($this->_req_data['_REG_ID'])) { |
|
@@ 2385-2389 (lines=5) @@
|
| 2382 |
|
protected function _duplicate_attendee() { |
| 2383 |
|
$action = !empty( $this->_req_data['return'] ) ? $this->_req_data['return'] : 'default'; |
| 2384 |
|
//verify we have necessary info |
| 2385 |
|
if ( empty($this->_req_data['_REG_ID'] ) ) { |
| 2386 |
|
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__ ); |
| 2387 |
|
$query_args = array( 'action' => $action ); |
| 2388 |
|
$this->_redirect_after_action('', '', '', $query_args, TRUE); |
| 2389 |
|
} |
| 2390 |
|
|
| 2391 |
|
//okay necessary deets present... let's dupe the incoming attendee and attach to incoming registration. |
| 2392 |
|
$registration = EEM_Registration::instance()->get_one_by_ID( $this->_req_data['_REG_ID'] ); |