Permalink
Browse files

Fix autofilled slug value as negative number

  • Loading branch information...
1 parent 202f34d commit 1078faee6c443f0ad2fbec5a2b8591cfc63476aa @c12simple c12simple committed Sep 23, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/src/plugins/core.access/src/Model/Repository.php
@@ -308,7 +308,7 @@ public function getSlug()
*/
public function setSlug($slug = null)
{
- if ($slug === null) {
+ if (empty($slug)) {
$this->slug = StringHelper::slugify($this->display);
} else {
$this->slug = $slug;

0 comments on commit 1078fae

Please sign in to comment.