Skip to content

Base document _mark_as_changed bug #1369

@iici-gli

Description

@iici-gli

At base/document.py line 496, the remove function is called on the list being loopped on. The loopped on list should be a shallow copy:
<--
for field in self._changed_fields:
if field.startswith(level):
remove(field)
-->
for field in self._changed_fields[:]:
if field.startswith(level):
remove(field)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions