Fix missing call to str.strip() in get_next_reference (#12966)

The missing call would throw a TypeError, but that was later on swallowed, so the code would fall back to `reference_int` and never used the configured reference pattern

Co-authored-by: Matthias Mair <code@mjmair.com>
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
authored and GitHub committed 2026-10-13 13:40:53 +11:00
1 parent cdaf6e3aa6
commit ea043f50b0
1 file changed
+1 -1
+1 -1
View File
@@ -332,7 +332,7 @@ class ReferenceIndexingMixin(models.Model):
# No existing items # No existing items
return 1 return 1
reference = latest.reference.strip reference = latest.reference.strip()
try: try:
reference = InvenTree.format.extract_named_group( reference = InvenTree.format.extract_named_group(