BUG: drafts broken for new topics

This commit is contained in:
Sam 2013-12-27 10:35:53 +11:00
parent 31ea259624
commit cbaa0a3a49

View File

@ -102,9 +102,9 @@ class ListController < ApplicationController
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