Skip to content

Commit

Permalink
various fixes 2.3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
l3pp4rd committed May 21, 2013
1 parent 3fea2cf commit e84a4e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ refactoring doctrine2 extensions. The repository can be moved to the maintainers
left on mine. I do not want users to lose availability of stable extensions which they were and are
used to, at the moment.

**Version 2.3.5**
**Version 2.3.6**

[![Build Status](https://secure.travis-ci.org/l3pp4rd/DoctrineExtensions.png?branch=master)](http://travis-ci.org/l3pp4rd/DoctrineExtensions)

Expand Down
2 changes: 1 addition & 1 deletion lib/Gedmo/Sluggable/SluggableListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ private function generateSlug(SluggableAdapter $ea, $object)
continue;
}
// must fetch the old slug from changeset, since $object holds the new version
$oldSlug = $changeSet[$slugField][0];
$oldSlug = isset($changeSet[$slugField]) ? $changeSet[$slugField][0] : $slug;
$needToChangeSlug = false;
// if slug is null or set to empty, regenerate it, or needs an update
if (empty($slug) || $slug === '__id__' || !isset($changeSet[$slugField])) {
Expand Down

0 comments on commit e84a4e2

Please sign in to comment.