@@ 888-892 (lines=5) @@ | ||
885 | // save changes |
|
886 | $registration->save(); |
|
887 | // update txn cache |
|
888 | if ( ! $this->transaction->update_cache_after_object_save( 'Registration', $registration )) { |
|
889 | if ( $show_errors ) { |
|
890 | EE_Error::add_error( __( 'The newly saved Registration object could not be cached on the Transaction.', 'event_espresso' ), __FILE__, __FUNCTION__, __LINE__); |
|
891 | } |
|
892 | } |
|
893 | } |
|
894 | } else { |
|
895 | if ( $show_errors ) { |
|
@@ 918-925 (lines=8) @@ | ||
915 | if ( $registration->attendee() instanceof EE_Attendee ) { |
|
916 | // save so that ATT has ID |
|
917 | $registration->attendee()->save(); |
|
918 | if ( ! $registration->update_cache_after_object_save( 'Attendee', $registration->attendee() ) ) { |
|
919 | if ( $show_errors ) { |
|
920 | EE_Error::add_error( |
|
921 | __( 'The newly saved Attendee object could not be cached on the registration.', 'event_espresso' ), |
|
922 | __FILE__, __FUNCTION__, __LINE__ |
|
923 | ); |
|
924 | } |
|
925 | } |
|
926 | } else { |
|
927 | if ( $show_errors ) { |
|
928 | EE_Error::add_error( |