mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
Merge pull request #1929 from verg/fix_category_in_drafts
FIX: restore category when opening draft
This commit is contained in:
commit
80bdc6e430
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue