Skip to content
Snippets Groups Projects
Commit 253f41d8 authored by Simon Künzel's avatar Simon Künzel
Browse files

Don't create events for deleted object on field change

parent f6d100aa
No related branches found
No related tags found
No related merge requests found
Pipeline #7622 failed
Pipeline: backend

#7623

    ......@@ -405,7 +405,8 @@ class ApiObjectClass:
    for child_class in self._children_classes_by_class_id.values():
    relationship_in_child = getattr(child_class.orm_class, child_class._parent_relationship_id_by_class_id[self.id])
    children_ids_by_child_class_id[child_class.id] = session.scalars(
    sql.select(child_class.orm_class.id)
    child_class.orm_class.sudo_select()
    .with_only_columns(child_class.orm_class.id)
    .where(relationship_in_child.has(self.orm_class.id == object_id))
    ).all()
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment