diff --git a/models/behaviors/sluggable.php b/models/behaviors/sluggable.php index 6552bc1..df26f09 100644 --- a/models/behaviors/sluggable.php +++ b/models/behaviors/sluggable.php @@ -116,9 +116,9 @@ function beforeSave(&$Model) $slug = $this->__slug($label, $this->__settings[$Model->alias]); - // Look for slugs that start with the same slug we've just generated + // Look for slugs that match the same slug we've just generated - $conditions = array($Model->alias . '.' . $this->__settings[$Model->alias]['slug'].' LIKE' => $slug . '%'); + $conditions = array($Model->alias . '.' . $this->__settings[$Model->alias]['slug'] => $slug); if (!empty($Model->id)) {