diff --git a/config/config.exs b/config/config.exs index 85d18ec..874e3e4 100644 --- a/config/config.exs +++ b/config/config.exs @@ -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, diff --git a/lib/ash_phoenix/form/form.ex b/lib/ash_phoenix/form/form.ex index 0bacbff..bae6341 100644 --- a/lib/ash_phoenix/form/form.ex +++ b/lib/ash_phoenix/form/form.ex @@ -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