|
@@ 844-848 (lines=5) @@
|
| 841 |
|
// save changes |
| 842 |
|
$registration->save(); |
| 843 |
|
// update txn cache |
| 844 |
|
if ( ! $this->transaction->update_cache_after_object_save( 'Registration', $registration )) { |
| 845 |
|
if ( $show_errors ) { |
| 846 |
|
EE_Error::add_error( __( 'The newly saved Registration object could not be cached on the Transaction.', 'event_espresso' ), __FILE__, __FUNCTION__, __LINE__); |
| 847 |
|
} |
| 848 |
|
} |
| 849 |
|
} |
| 850 |
|
} else { |
| 851 |
|
if ( $show_errors ) { |
|
@@ 873-880 (lines=8) @@
|
| 870 |
|
if ( $registration->attendee() instanceof EE_Attendee ) { |
| 871 |
|
// save so that ATT has ID |
| 872 |
|
$registration->attendee()->save(); |
| 873 |
|
if ( ! $registration->update_cache_after_object_save( 'Attendee', $registration->attendee() )) { |
| 874 |
|
if ( $show_errors ) { |
| 875 |
|
EE_Error::add_error( |
| 876 |
|
__( 'The newly saved Attendee object could not be cached on the registration.', 'event_espresso' ), |
| 877 |
|
__FILE__, __FUNCTION__, __LINE__ |
| 878 |
|
); |
| 879 |
|
} |
| 880 |
|
} |
| 881 |
|
} else { |
| 882 |
|
if ( $show_errors ) { |
| 883 |
|
ob_start(); |