Skip to content

Commit

Permalink
Merge pull request #349 from nickurt/patch-1
Browse files Browse the repository at this point in the history
Fixed the 'Modules->Exists'-check to detect older Modules-version correctly ...
  • Loading branch information
kaidesu authored Mar 12, 2018
2 parents f6691ce + 05c5d9a commit 9b25e34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Repositories/LocalRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function sortByDesc($key)
*/
public function exists($slug)
{
return $this->slugs()->contains($slug);
return ($this->slugs()->contains($slug) || $this->slugs()->contains(str_slug($slug)));
}

/**
Expand Down

0 comments on commit 9b25e34

Please sign in to comment.