The personal finance app for everyone (by everyone)
Ruby
fix(entry): Guard entryable_attributes for non-transaction entries in bulk_update! (#1877)
sentry[bot]fc5cc26812e3
diff --git a/app/models/entry.rb b/app/models/entry.rbindex 5dbcf2090b..84c2719f2e 100644--- a/app/models/entry.rb+++ b/app/models/entry.rb@@ -455,6 +455,7 @@ class Entry < ApplicationRecordif bulk_attributes.present?attrs = bulk_attributes.dupattrs.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?