|
@@ 2113-2117 (lines=5) @@
|
| 2110 |
|
$tickets = array(); |
| 2111 |
|
$dtts = array(); |
| 2112 |
|
//if empty _REG_ID then get out because there's nothing to do |
| 2113 |
|
if (empty($this->_req_data['_REG_ID'])) { |
| 2114 |
|
$msg = $trash |
| 2115 |
|
? __('In order to trash registrations you must select which ones you wish to trash by clicking the checkboxes.', |
| 2116 |
|
'event_espresso') |
| 2117 |
|
: __('In order to restore registrations you must select which ones you wish to restore by clicking the checkboxes.', |
| 2118 |
|
'event_espresso'); |
| 2119 |
|
EE_Error::add_error($msg, __FILE__, __LINE__, __FUNCTION__); |
| 2120 |
|
$this->_redirect_after_action(false, '', '', array(), true); |
|
@@ 2775-2779 (lines=5) @@
|
| 2772 |
|
{ |
| 2773 |
|
$action = ! empty($this->_req_data['return']) ? $this->_req_data['return'] : 'default'; |
| 2774 |
|
//verify we have necessary info |
| 2775 |
|
if (empty($this->_req_data['_REG_ID'])) { |
| 2776 |
|
EE_Error::add_error(__('Unable to create the contact for the registration because the required parameters are not present (_REG_ID )', |
| 2777 |
|
'event_espresso'), __FILE__, __LINE__, __FUNCTION__); |
| 2778 |
|
$query_args = array('action' => $action); |
| 2779 |
|
$this->_redirect_after_action('', '', '', $query_args, true); |
| 2780 |
|
} |
| 2781 |
|
//okay necessary deets present... let's dupe the incoming attendee and attach to incoming registration. |
| 2782 |
|
$registration = EEM_Registration::instance()->get_one_by_ID($this->_req_data['_REG_ID']); |