Skip to content

Commit

Permalink
Remove visible condition from CustomValue callback
Browse files Browse the repository at this point in the history
  • Loading branch information
dombesz committed May 7, 2024
1 parent 2c68a7e commit 45c16b6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/models/custom_value.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,7 @@ def activate_custom_field_in_customized_project

# if a custom value is created for a project via CustomValue.create(...),
# the custom field needs to be activated in the project
if customized&.available_custom_fields&.include?(custom_field) &&
customized&.project_custom_fields&.exclude?(custom_field)

if customized&.project_custom_fields&.exclude?(custom_field)
customized.project_custom_fields << custom_field
end
end
Expand Down

0 comments on commit 45c16b6

Please sign in to comment.