summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--changelog/en/changelog_2022-06-15.md3
-rw-r--r--changelog/fr/changelog_2023-01-25.md3
-rw-r--r--ishtar_common/models_common.py2
3 files changed, 7 insertions, 1 deletions
diff --git a/changelog/en/changelog_2022-06-15.md b/changelog/en/changelog_2022-06-15.md
index e995f1659..a3a2b2811 100644
--- a/changelog/en/changelog_2022-06-15.md
+++ b/changelog/en/changelog_2022-06-15.md
@@ -4,6 +4,9 @@ v4.0.52 - 2099-12-01
### Bug fixes ###
- message after creation: use the generate_cached_label if no label is available
+### Technical ###
+- fix infinite loop on regenerate_all_id
+
v4.0.51 - 2023-07-05
--------------------
diff --git a/changelog/fr/changelog_2023-01-25.md b/changelog/fr/changelog_2023-01-25.md
index 147b4b36b..ba9c47d1d 100644
--- a/changelog/fr/changelog_2023-01-25.md
+++ b/changelog/fr/changelog_2023-01-25.md
@@ -4,6 +4,9 @@ v4.0.52 - 2099-12-01
### Corrections de dysfonctionnements ###
- message après création : utilisation de generate_cached_label si aucun label n'est disponible
+### Technique ###
+- correction d'une boucle infinie sur regenerate_all_id
+
v4.0.51 - 2023-07-05
--------------------
diff --git a/ishtar_common/models_common.py b/ishtar_common/models_common.py
index 1c2170018..48a5ef470 100644
--- a/ishtar_common/models_common.py
+++ b/ishtar_common/models_common.py
@@ -4623,7 +4623,7 @@ class CompleteIdentifierItem(models.Model, ImageContainerModel):
modified = True
self.custom_index = custom_index
complete_id = self.generate_complete_identifier()
- if complete_id:
+ if complete_id != self.complete_identifier:
modified = True
self.complete_identifier = complete_id
if modified: