Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/controllers/drafts_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def autosave
when 'issue'
new_content = get_issue_content
when 'wiki'
newcontent = get_wiki_content
new_content = get_wiki_content
when 'news'
new_content = get_news_content
end
Expand Down
1 change: 1 addition & 0 deletions lib/drafts_wiki_controller_patch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def set_draft
@content.comments = @draft.content[:content][:comments]
# To prevent StaleObjectError exception when reverting to a previous version
@content.version = @page.content.version
@text = @content.text
else
#find_wiki
old_edit.bind(self).call
Expand Down