From 3e638151f725b1b585ea3c8bca79472bfa78709d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 11 Sep 2024 16:03:19 +0200 Subject: [PATCH] Update only the control with the operations value to update when migrating Closes #13499 --- modules/quality/quality.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/quality/quality.py b/modules/quality/quality.py index bc626b1454..052e1f927e 100644 --- a/modules/quality/quality.py +++ b/modules/quality/quality.py @@ -227,7 +227,8 @@ class Control(DeactivableMixin, MatchMixin, ModelSQL, ModelView): for id_, operations in cursor: update.execute(*table.update( [table.operations], - operations.replace(old, new))) + operations.replace(old, new), + where=table.id == id_)) @classmethod def default_frequency(cls):