From cbaa0a3a49286c3106a08f93f614327256a26441 Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 27 Dec 2013 10:35:53 +1100 Subject: [PATCH] BUG: drafts broken for new topics --- app/controllers/list_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/list_controller.rb b/app/controllers/list_controller.rb index a9e1b03171ac7..475322ce47e76 100644 --- a/app/controllers/list_controller.rb +++ b/app/controllers/list_controller.rb @@ -102,9 +102,9 @@ def category_response(extra_opts=nil) def respond(list) discourse_expires_in 1.minute - list.draft = Draft.get(current_user, list.draft_key, list.draft_sequence) if current_user list.draft_key = Draft::NEW_TOPIC list.draft_sequence = DraftSequence.current(current_user, Draft::NEW_TOPIC) + list.draft = Draft.get(current_user, list.draft_key, list.draft_sequence) if current_user respond_to do |format| format.html do