Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Bugfix: Only create a new slug, if is new record or slug relevant dat…

…a changed
  • Loading branch information...
commit de3e9d1dfa544bbc22695156a259b2a7433981cd 1 parent 05e3602
Florian Fackler authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  SluggableBehavior.php
2  SluggableBehavior.php
@@ -88,7 +88,7 @@ public function beforeSave($event)
88 88
89 89 // Check if slug has to be unique
90 90 if (false === $this->unique
91   - || (! $this->isNewRecord && $this->owner->slug === $slug)
  91 + || (! $this->owner->isNewRecord && $this->owner->slug === $slug)
92 92 )
93 93 {
94 94 $this->owner->slug = $slug;

0 comments on commit de3e9d1

Please sign in to comment.
Something went wrong with that request. Please try again.