fix: properly transform nested params

This commit is contained in:
Zach Daniel 2024-06-04 00:43:37 -04:00
parent ac622715bb
commit d4833683e5
2 changed files with 4 additions and 1 deletions

View file

@ -3,6 +3,8 @@ config :phoenix, :json_library, Jason
config :ash, :validate_domain_resource_inclusion?, false
config :ash, :validate_domain_config_inclusion?, false
config :logger, level: :warning
if Mix.env() == :dev do
config :git_ops,
mix_project: AshPhoenix.MixProject,

View file

@ -393,6 +393,8 @@ defmodule AshPhoenix.Form do
{AshPhoenix.Form.WrappedValue, %AshPhoenix.Form.WrappedValue{value: value}}
end
opts = update_opts(opts, data, %{})
type =
if is_atom(action) do
Ash.Resource.Info.action(resource, action).type
@ -2600,7 +2602,6 @@ defmodule AshPhoenix.Form do
set_params = opts[:set_params]
only_touched? = Keyword.get(opts, :only_touched?, true)
filter = opts[:filter] || fn _ -> true end
opts = Keyword.put(opts, :transform?, false)
form_keys =
form.form_keys