@@ 939-941 (lines=3) @@ | ||
936 | $submission_error_messages = array(); |
|
937 | // bad, bad, bad registrant |
|
938 | foreach( $this->checkout->current_step->reg_form->get_validation_errors_accumulated() as $validation_error ){ |
|
939 | if ( $validation_error instanceof EE_Validation_Error ) { |
|
940 | $submission_error_messages[] = sprintf( __( '%s : %s', 'event_espresso' ), $validation_error->get_form_section()->html_label_text(), $validation_error->getMessage() ); |
|
941 | } |
|
942 | } |
|
943 | EE_Error::add_error( join( '<br />', $submission_error_messages ), __FILE__, __FUNCTION__, __LINE__ ); |
|
944 | } |
@@ 1055-1061 (lines=7) @@ | ||
1052 | if ( ! $payment_form->is_valid() ) { |
|
1053 | $submission_error_messages = array(); |
|
1054 | foreach ( $payment_form->get_validation_errors_accumulated() as $validation_error ) { |
|
1055 | if ( $validation_error instanceof EE_Validation_Error ) { |
|
1056 | $submission_error_messages[] = sprintf( |
|
1057 | _x( '%s : %s', 'Form Section Name : Form Validation Error', 'event_espresso' ), |
|
1058 | $validation_error->get_form_section()->html_label_text(), |
|
1059 | $validation_error->getMessage() |
|
1060 | ); |
|
1061 | } |
|
1062 | } |
|
1063 | EE_Error::add_error( join( '<br />', $submission_error_messages ), __FILE__, __FUNCTION__, __LINE__ ); |
|
1064 | return array(); |