@@ 945-947 (lines=3) @@ | ||
942 | $submission_error_messages = array(); |
|
943 | // bad, bad, bad registrant |
|
944 | foreach( $this->checkout->current_step->reg_form->get_validation_errors_accumulated() as $validation_error ){ |
|
945 | if ( $validation_error instanceof EE_Validation_Error ) { |
|
946 | $submission_error_messages[] = sprintf( __( '%s : %s', 'event_espresso' ), $validation_error->get_form_section()->html_label_text(), $validation_error->getMessage() ); |
|
947 | } |
|
948 | } |
|
949 | EE_Error::add_error( join( '<br />', $submission_error_messages ), __FILE__, __FUNCTION__, __LINE__ ); |
|
950 | } |
@@ 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(); |