@@ 1019-1022 (lines=4) @@ | ||
1016 | // add relation to registration, set attendee ID, and cache attendee |
|
1017 | $this->_associate_attendee_with_registration( $registration, $attendee ); |
|
1018 | // \EEH_Debug_Tools::printr( $registration, '$registration', __FILE__, __LINE__ ); |
|
1019 | if ( ! $registration->attendee() instanceof EE_Attendee ) { |
|
1020 | EE_Error::add_error( sprintf( __( 'Registration %s has an invalid or missing Attendee object.', 'event_espresso' ), $reg_url_link ), __FILE__, __FUNCTION__, __LINE__ ); |
|
1021 | return false; |
|
1022 | } |
|
1023 | /** @type EE_Registration_Processor $registration_processor */ |
|
1024 | $registration_processor = EE_Registry::instance()->load_class( 'Registration_Processor' ); |
|
1025 | // at this point, we should have enough details about the registrant to consider the registration NOT incomplete |
@@ 920-931 (lines=12) @@ | ||
917 | ); |
|
918 | } |
|
919 | } |
|
920 | } else { |
|
921 | if ( $show_errors ) { |
|
922 | EE_Error::add_error( |
|
923 | sprintf( |
|
924 | '%1$s||%1$s $attendee = %2$s', |
|
925 | __( 'Either no Attendee information was found, or an invalid Attendee object was discovered when attempting to save your registration information.', 'event_espresso' ), |
|
926 | var_export( $registration->attendee(), true ) |
|
927 | ), |
|
928 | __FILE__, __FUNCTION__, __LINE__ |
|
929 | ); |
|
930 | } |
|
931 | } |
|
932 | } |
|
933 | ||
934 |