Skip to content

Commit

Permalink
Delete geolocation if deleting events.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Jul 4, 2017
1 parent b786870 commit 959c609
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions kronolith/lib/Driver/Sql.php
Expand Up @@ -780,6 +780,8 @@ public function delete($calendar)
*/
protected function _deleteEvent($eventId, $silent = false)
{
global $injector;

/* Fetch the event for later use. */
if ($eventId instanceof Kronolith_Event) {
$event = $eventId;
Expand Down Expand Up @@ -817,6 +819,9 @@ protected function _deleteEvent($eventId, $silent = false)
}
}

/* Delete Geolocation */
$injector->getInstance('Kronolith_Geo')->deleteLocation($eventId);

return $event;
}

Expand Down

0 comments on commit 959c609

Please sign in to comment.