mirror of
https://github.com/ash-project/ash_phoenix.git
synced 2024-09-19 06:42:47 +12:00
fix: ensure we prepare_source
for all read action forms
This commit is contained in:
parent
b5d8a93387
commit
d7a766742c
1 changed files with 2 additions and 0 deletions
|
@ -1869,6 +1869,8 @@ defmodule AshPhoenix.Form do
|
|||
|> with_changeset(&Ash.read_one(&1, opts[:action_opts] || []))
|
||||
else
|
||||
form.resource
|
||||
|> Ash.Query.new()
|
||||
|> prepare_source.()
|
||||
|> Ash.Query.for_read(
|
||||
form.source.action.name,
|
||||
changeset_params,
|
||||
|
|
Loading…
Reference in a new issue