Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Don't raise error if to-destroy groups are not found

Oliver Günther6663a3e40476
diff --git a/app/models/type/attribute_groups.rb b/app/models/type/attribute_groups.rb
index 93bb4968af7..2d5bda2ecd5 100644
--- a/app/models/type/attribute_groups.rb
+++ b/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