mirror of
https://github.com/we-promise/sure.git
synced 2026-05-29 15:34:58 +00:00
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:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user