Skip to content

Commit

Permalink
BUG: drafts broken for new topics
Browse files Browse the repository at this point in the history
  • Loading branch information
SamSaffron committed Dec 26, 2013
1 parent 31ea259 commit cbaa0a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/list_controller.rb
Expand Up @@ -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
Expand Down

0 comments on commit cbaa0a3

Please sign in to comment.