1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-20 15:31:12 +00:00

add empty line after guard clause to app/models/version.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@20264 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2020-11-05 13:42:31 +00:00
parent be0cb8e3c9
commit aaebab85c5

View File

@ -167,10 +167,9 @@ class Version < 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
attrs = attrs.deep_dup
# Reject custom fields values not visible by the user
if attrs['custom_field_values'].present?
editable_custom_field_ids = editable_custom_field_values(user).map {|v| v.custom_field_id.to_s}