@@ 864-868 (lines=5) @@ | ||
861 | // save changes |
|
862 | $registration->save(); |
|
863 | // update txn cache |
|
864 | if ( ! $this->transaction->update_cache_after_object_save( 'Registration', $registration )) { |
|
865 | if ( $show_errors ) { |
|
866 | EE_Error::add_error( __( 'The newly saved Registration object could not be cached on the Transaction.', 'event_espresso' ), __FILE__, __FUNCTION__, __LINE__); |
|
867 | } |
|
868 | } |
|
869 | } |
|
870 | } else { |
|
871 | if ( $show_errors ) { |
|
@@ 893-900 (lines=8) @@ | ||
890 | if ( $registration->attendee() instanceof EE_Attendee ) { |
|
891 | // save so that ATT has ID |
|
892 | $registration->attendee()->save(); |
|
893 | if ( ! $registration->update_cache_after_object_save( 'Attendee', $registration->attendee() )) { |
|
894 | if ( $show_errors ) { |
|
895 | EE_Error::add_error( |
|
896 | __( 'The newly saved Attendee object could not be cached on the registration.', 'event_espresso' ), |
|
897 | __FILE__, __FUNCTION__, __LINE__ |
|
898 | ); |
|
899 | } |
|
900 | } |
|
901 | } else { |
|
902 | if ( $show_errors ) { |
|
903 | ob_start(); |