mirror of
https://github.com/redmine/redmine.git
synced 2026-07-28 05:12:26 +02:00
Fixes RuboCop error Layout/EmptyLineAfterGuardClause.
Patch by Katsuya HIDAKA (user:hidakatsuya). git-svn-id: https://svn.redmine.org/redmine/branches/5.1-stable@23965 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -2081,6 +2081,7 @@ class Issue < ActiveRecord::Base
|
||||
# current user.
|
||||
def force_default_value_on_noneditable_custom_fields
|
||||
return unless custom_field_values_changed?
|
||||
|
||||
editable_custom_field_ids = editable_custom_fields(author).map(&:id)
|
||||
custom_field_values.each do |field_value|
|
||||
unless editable_custom_field_ids.include?(field_value.custom_field_id)
|
||||
|
||||
Reference in New Issue
Block a user