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