Fix d'un bug possible quand on créé un groupe dupliqué

This commit is contained in:
Jean-Marie Favreau 2024-11-29 19:37:21 +01:00
parent 252fb8c27b
commit 1fc1fc13e1

View File

@ -1370,9 +1370,10 @@ class Event(models.Model):
# otherwise merge existing groups
group = DuplicatedEvents.merge_groups(groups)
group.save()
if force_non_fixed:
group.representative = None
group.save()
# set the possibly duplicated group for the current object
self.other_versions = group