]> source.dussan.org Git - redmine.git/commitdiff
Don't check that param is a Hash.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 3 Jun 2017 09:21:27 +0000 (09:21 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 3 Jun 2017 09:21:27 +0000 (09:21 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@16607 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/wiki_controller.rb

index abf106d5ff669dd5b380e5dd438dfd2bf2b55652..01859d4e028f24471ce7b01232ff5cb515c3c136 100644 (file)
@@ -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 ||= {}