Skip to content
This repository has been archived by the owner on Feb 10, 2021. It is now read-only.

Commit

Permalink
Fix cleaner
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Peters committed Jun 20, 2017
1 parent e449fb9 commit b302e20
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Listener/CleanupFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ class CleanupFields
{
public function handle(ModuleWasUninstalled $event)
{
if($event->getModule()->getSlug() != 'locations')
return;
$fields = app(FieldRepositoryInterface::class);
$oldFields = $fields->findAllByNamespace('locations');
foreach($oldFields as $field) {
Expand Down

0 comments on commit b302e20

Please sign in to comment.