0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Merge pull request #3762 from blia/dev

Fixed TypeError when updating slug
This commit is contained in:
Hannah Wolfe 2014-08-17 16:02:14 +01:00
commit 734fad2a64

View file

@ -148,7 +148,7 @@ var PostSettingsMenuController = Ember.ObjectController.extend({
newSlug = newSlug || slug;
newSlug = newSlug.trim();
newSlug = newSlug && newSlug.trim();
// Ignore unchanged slugs or candidate slugs that are empty
if (!newSlug || slug === newSlug) {