Skip to content

Commit

Permalink
Merge pull request #3877 from jlledom/THREESCALE-11276-field-definition
Browse files Browse the repository at this point in the history
THREESCALE-11276: New field definition: Fix dropdown content
  • Loading branch information
jlledom authored Sep 4, 2024
2 parents 1b25b9b + ed0476e commit 4443a78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/admin/fields_definitions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def create

elsif @fields_definition.errors[:target].empty?
@optional_fields = @fields_definition.target.classify.constantize.builtin_fields -
current_account.fields_definitions.by_target(@fields_definition.target).map(&:name)
current_account.reload.fields_definitions.by_target(@fields_definition.target).map(&:name)
@required_fields = @fields_definition.target_class.required_fields
@optional_fields.unshift "[new field]"
end
Expand Down

0 comments on commit 4443a78

Please sign in to comment.