mirror of
https://github.com/ash-project/ash_phoenix.git
synced 2024-09-17 05:42:49 +12:00
fix: properly transform nested params
This commit is contained in:
parent
ac622715bb
commit
d4833683e5
2 changed files with 4 additions and 1 deletions
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue