Merge pull request #1929 from verg/fix_category_in_drafts

FIX: restore category when opening draft
This commit is contained in:
Robin Ward 2014-02-11 15:42:48 -05:00
commit 80bdc6e430

View file

@ -306,8 +306,10 @@ Discourse.ComposerController = Discourse.Controller.extend({
}
}
composer = composer || Discourse.Composer.create();
composer.open(opts);
if ( !composer ) {
composer = Discourse.Composer.create();
composer.open(opts);
}
this.set('model', composer);
composer.set('composeState', Discourse.Composer.OPEN);