mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-14 00:50:14 -04:00
BUG: drafts broken for new topics
This commit is contained in:
parent
31ea259624
commit
cbaa0a3a49
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue