fix: ensure we prepare_source for all read action forms

This commit is contained in:
Zach Daniel 2024-06-28 12:06:20 -04:00
parent b5d8a93387
commit d7a766742c

View file

@ -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,