fix(entry): Guard entryable_attributes for non-transaction entries in bulk_update! (#1877)

Co-authored-by: sentry[bot] <39604003+sentry[bot]@users.noreply.github.com>
This commit is contained in:
sentry[bot]
2026-05-20 19:21:31 +02:00
committed by GitHub
parent 12785754c8
commit fc5cc26812

View File

@@ -455,6 +455,7 @@ class Entry < ApplicationRecord
if bulk_attributes.present?
attrs = bulk_attributes.dup
attrs.delete(:date) if entry.split_child?
attrs.delete(:entryable_attributes) unless entry.transaction?
if attrs.present?
attrs[:entryable_attributes] = attrs[:entryable_attributes].dup if attrs[:entryable_attributes].present?