@@ 1090-1092 (lines=3) @@ | ||
1087 | $submission_error_messages = array(); |
|
1088 | // bad, bad, bad registrant |
|
1089 | foreach( $this->checkout->current_step->reg_form->get_validation_errors_accumulated() as $validation_error ){ |
|
1090 | if ( $validation_error instanceof EE_Validation_Error ) { |
|
1091 | $submission_error_messages[] = sprintf( |
|
1092 | __( '%s : %s', 'event_espresso' ), |
|
1093 | $validation_error->get_form_section()->html_label_text(), |
|
1094 | $validation_error->getMessage() |
|
1095 | ); |
@@ 1296-1302 (lines=7) @@ | ||
1293 | if ( ! $payment_form->is_valid()) { |
|
1294 | $submission_error_messages = array(); |
|
1295 | foreach ($payment_form->get_validation_errors_accumulated() as $validation_error) { |
|
1296 | if ($validation_error instanceof EE_Validation_Error) { |
|
1297 | $submission_error_messages[] = sprintf( |
|
1298 | _x('%s : %s', 'Form Section Name : Form Validation Error', 'event_espresso'), |
|
1299 | $validation_error->get_form_section()->html_label_text(), |
|
1300 | $validation_error->getMessage() |
|
1301 | ); |
|
1302 | } |
|
1303 | } |
|
1304 | EE_Error::add_error(join('<br />', $submission_error_messages), __FILE__, __FUNCTION__, __LINE__); |
|
1305 |