Skip to content

Commit

Permalink
persisting a content entry should skip the association fields
Browse files Browse the repository at this point in the history
  • Loading branch information
did committed Sep 20, 2021
1 parent b4680d7 commit 985852f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/locomotive/steam/services/content_entry_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ def update_decorated_entry(decorated_entry, attributes)
entry.attributes.delete(field.name)
end

# remove any association field
_repository.content_type.association_fields.each do |field|
entry.attributes.delete(field.name)
end

_repository.update(entry)

logEntryOperation(decorated_entry.content_type.slug, decorated_entry)
Expand Down

0 comments on commit 985852f

Please sign in to comment.