From 2da1ecb1d857c7ee35d4a0739cbf66c7c8167512 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Wed, 4 Nov 2020 14:44:06 +0000 Subject: [PATCH] add empty line after guard clause to app/models/wiki_page.rb git-svn-id: http://svn.redmine.org/redmine/trunk@20250 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/wiki_page.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.