|
@@ 876-880 (lines=5) @@
|
| 873 |
|
// save changes |
| 874 |
|
$registration->save(); |
| 875 |
|
// update txn cache |
| 876 |
|
if ( ! $this->transaction->update_cache_after_object_save( 'Registration', $registration )) { |
| 877 |
|
if ( $show_errors ) { |
| 878 |
|
EE_Error::add_error( __( 'The newly saved Registration object could not be cached on the Transaction.', 'event_espresso' ), __FILE__, __FUNCTION__, __LINE__); |
| 879 |
|
} |
| 880 |
|
} |
| 881 |
|
} |
| 882 |
|
} else { |
| 883 |
|
if ( $show_errors ) { |
|
@@ 906-913 (lines=8) @@
|
| 903 |
|
if ( $registration->attendee() instanceof EE_Attendee ) { |
| 904 |
|
// save so that ATT has ID |
| 905 |
|
$registration->attendee()->save(); |
| 906 |
|
if ( ! $registration->update_cache_after_object_save( 'Attendee', $registration->attendee() ) ) { |
| 907 |
|
if ( $show_errors ) { |
| 908 |
|
EE_Error::add_error( |
| 909 |
|
__( 'The newly saved Attendee object could not be cached on the registration.', 'event_espresso' ), |
| 910 |
|
__FILE__, __FUNCTION__, __LINE__ |
| 911 |
|
); |
| 912 |
|
} |
| 913 |
|
} |
| 914 |
|
} else { |
| 915 |
|
if ( $show_errors ) { |
| 916 |
|
EE_Error::add_error( |