Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fix autofilled slug value as negative number
Browse files Browse the repository at this point in the history
  • Loading branch information
c12simple committed Sep 23, 2016
1 parent 202f34d commit 1078fae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/plugins/core.access/src/Model/Repository.php
Expand Up @@ -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;
Expand Down

0 comments on commit 1078fae

Please sign in to comment.