Skip to content

Commit 7e3d710

Browse files
committed
Use custom_field_values, because that one has all the values initialized.
1 parent 7e9b1bf commit 7e3d710

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/services/base_services/set_attributes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def set_custom_values_to_validate(params)
7676
return unless custom_field_ids.any?
7777

7878
# Validate the custom values updated via the params only.
79-
model.custom_values_to_validate = model.custom_values.filter do |cv|
79+
model.custom_values_to_validate = model.custom_field_values.filter do |cv|
8080
custom_field_ids.include?(cv.custom_field_id)
8181
end
8282
end

0 commit comments

Comments
 (0)