@@ -14,7 +14,7 @@ class ClubEventObserver
1414 /**
1515 * Listen to the ClubEvent saving event.
1616 * Could also put this into the 'updating' method.
17- * This way, manually created events will also receive the
17+ * This way, manually created events will also receive the
1818 * 'was_manually_edited' flag, which seems consistent.
1919 *
2020 * @param \Lara\ClubEvent $event
@@ -31,7 +31,7 @@ public function saving(ClubEvent $event)
3131 }
3232 }
3333
34- public function created (ClubEvent $ event )
34+ public function created (ClubEvent $ event )
3535 {
3636 $ user = Auth::user ();
3737
@@ -44,7 +44,7 @@ public function created(ClubEvent $event)
4444 CacheUtility::forgetMonthTable ($ event );
4545 }
4646
47- public function updating (ClubEvent $ event )
47+ public function updating (ClubEvent $ event )
4848 {
4949 if ($ event ->isDirty ('evnt_time_start ' )) {
5050 Logging::eventStartChanged ($ event );
@@ -69,14 +69,17 @@ public function updating(ClubEvent $event)
6969 if ($ event ->isDirty ('evnt_private_details ' )) {
7070 Logging::logEventRevision ($ event , "revisions.eventPrivateDetailsChanged " );
7171 }
72+ if ($ event ->isDirty ('canceled ' )){
73+ Logging::eventeventCancelledChanged ($ event );
74+ }
7275 CacheUtility::forgetMonthTable ($ event );
7376 }
7477
7578
76- public function updated (ClubEvent $ event )
79+ public function updated (ClubEvent $ event )
7780 {
7881 $ user = Auth::user ();
79-
82+
8083 if ($ user ) {
8184 Log::info ('Event edited: ' . $ user ->name . ' ( ' . $ user ->person ->prsn_ldap_id . ', '
8285 . ') edited event " ' . $ event ->evnt_title . '" (eventID: ' . $ event ->id . ') on ' . $ event ->evnt_date_start . '. ' );
@@ -86,7 +89,7 @@ public function updated(ClubEvent $event)
8689 CacheUtility::forgetMonthTable ($ event );
8790 }
8891
89- public function deleted (ClubEvent $ event )
92+ public function deleted (ClubEvent $ event )
9093 {
9194 $ user = Auth::user ();
9295 if ($ user ) {
0 commit comments