app/controllers/avo/actions_controller.rb in avo-3.11.7 vs app/controllers/avo/actions_controller.rb in avo-3.11.8
- old
+ new
@@ -70,10 +70,11 @@
def set_action
@action = action_class.new(
record: @record,
resource: @resource,
user: _current_user,
- view: :new, # force the action view to in order to render new-related fields (hidden field)
+ # force the action view to in order to render new-related fields (hidden field)
+ view: Avo::ViewInquirer.new(:new),
arguments: BaseAction.decode_arguments(params[:arguments] || params.dig(:fields, :arguments)) || {}
)
# Fetch action's fields
@action.fields