mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
Don't check that param is a Hash.
git-svn-id: http://svn.redmine.org/redmine/trunk@16607 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
5975bef084
commit
09b0c3135c
@ -156,7 +156,7 @@ class WikiController < ApplicationController
|
||||
|
||||
@content = @page.content || WikiContent.new(:page => @page)
|
||||
content_params = params[:content]
|
||||
if content_params.nil? && params[:wiki_page].is_a?(Hash)
|
||||
if content_params.nil? && params[:wiki_page].present?
|
||||
content_params = params[:wiki_page].slice(:text, :comments, :version)
|
||||
end
|
||||
content_params ||= {}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user