| @@ 3049-3059 (lines=11) @@ | ||
| 3046 | } else { |
|
| 3047 | $query_args['step_error'] = $this->_req_data['step_error'] = true; |
|
| 3048 | } |
|
| 3049 | if (defined('DOING_AJAX')) { |
|
| 3050 | $this->new_registration(); //display next step |
|
| 3051 | } else { |
|
| 3052 | $query_args = array( |
|
| 3053 | 'action' => 'new_registration', |
|
| 3054 | 'processing_registration' => 1, |
|
| 3055 | 'event_id' => $this->_reg_event->ID(), |
|
| 3056 | 'uts' => time(), |
|
| 3057 | ); |
|
| 3058 | $this->_redirect_after_action( |
|
| 3059 | false, |
|
| 3060 | '', |
|
| 3061 | '', |
|
| 3062 | $query_args, |
|
| @@ 3082-3097 (lines=16) @@ | ||
| 3079 | $grand_total->save_this_and_descendants_to_txn(); |
|
| 3080 | } |
|
| 3081 | } |
|
| 3082 | if ( ! $transaction instanceof EE_Transaction) { |
|
| 3083 | $query_args = array( |
|
| 3084 | 'action' => 'new_registration', |
|
| 3085 | 'processing_registration' => 2, |
|
| 3086 | 'event_id' => $this->_reg_event->ID(), |
|
| 3087 | 'uts' => time(), |
|
| 3088 | ); |
|
| 3089 | if (defined('DOING_AJAX')) { |
|
| 3090 | //display registration form again because there are errors (maybe validation?) |
|
| 3091 | $this->new_registration(); |
|
| 3092 | return; |
|
| 3093 | } else { |
|
| 3094 | $this->_redirect_after_action( |
|
| 3095 | false, |
|
| 3096 | '', |
|
| 3097 | '', |
|
| 3098 | $query_args, |
|
| 3099 | true |
|
| 3100 | ); |
|