diff --git a/app/models/wiki_page.rb b/app/models/wiki_page.rb index 4fc4d4706..9ac19971f 100644 --- a/app/models/wiki_page.rb +++ b/app/models/wiki_page.rb @@ -90,8 +90,8 @@ class WikiPage < ActiveRecord::Base if attrs.respond_to?(:to_unsafe_hash) attrs = attrs.to_unsafe_hash end - return unless attrs.is_a?(Hash) + attrs = attrs.deep_dup # Project and Tracker must be set before since new_statuses_allowed_to depends on it.