mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
And similar fix for BuildOrder reference field
This commit is contained in:
parent
bde23c130c
commit
ca0f4e0031
@ -24,6 +24,10 @@ def build_refs(apps, schema_editor):
|
||||
except Exception: # pragma: no cover
|
||||
ref = 0
|
||||
|
||||
# Clip integer value to ensure it does not overflow database field
|
||||
if ref > 0x7fffffff:
|
||||
ref = 0x7fffffff
|
||||
|
||||
build.reference_int = ref
|
||||
build.save()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user