Merge pull request #8519 from opf/fix/attribute-groups-destroy

Don't raise error if to-destroy groups are not found
pull/8535/head
Oliver Günther 4 years ago committed by GitHub
commit 435095cacb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/models/type/attribute_groups.rb

@ -233,7 +233,7 @@ module Type::AttributeGroups
.map { |k| ::Type::QueryGroup.query_attribute_id(k) }
.compact
Query.destroy(ids)
Query.where(id: ids).destroy_all
end
def remove_attribute_groups_queries

Loading…
Cancel
Save