Skip to content

Commit 6a3f740

Browse files
AshPhoenix.FormTest
1 parent 9b3f121 commit 6a3f740

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

lib/ash/actions/managed_relationships.ex

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1487,10 +1487,8 @@ defmodule Ash.Actions.ManagedRelationships do
14871487

14881488
input_index = Enum.at(input_indices_to_bulk_create, bulk_index) || 0
14891489

1490-
relationship_error_key =
1491-
opts
1492-
|> Keyword.get(:meta, [])
1493-
|> Keyword.get(:id) || relationship.name
1490+
# Use bracket access so both map and keyword-list `meta` work (see `set_error_path/4`).
1491+
relationship_error_key = opts[:meta][:id] || relationship.name
14941492

14951493
error
14961494
|> add_bread_crumb(relationship, :create)

lib/ash/changeset/changeset.ex

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,8 +1232,7 @@ defmodule Ash.Changeset do
12321232
{:atomic, condition} <-
12331233
atomic_condition(where, changeset, context),
12341234
{{:atomic, modified_changeset?, new_changeset, atomic_changes, validations,
1235-
create_atomics},
1236-
condition} <-
1235+
create_atomics}, condition} <-
12371236
{atomic_with_changeset(
12381237
Ash.Resource.Change.atomic(
12391238
module,

0 commit comments

Comments
 (0)