Skip to content

Commit

Permalink
fix: ensure we prepare_source for all read action forms
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Jun 28, 2024
1 parent b5d8a93 commit d7a7667
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ash_phoenix/form/form.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d7a7667

Please sign in to comment.