From 8fc79f45a318a0b5ef93b7206d8c0154c1229c64 Mon Sep 17 00:00:00 2001 From: Oliver Date: Tue, 24 Aug 2021 11:55:58 +1000 Subject: [PATCH] Fix for "part" form fields - Specify "default" rather than overriding "value" --- InvenTree/templates/js/translated/part.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/InvenTree/templates/js/translated/part.js b/InvenTree/templates/js/translated/part.js index c828d8f66f..052a33ec5c 100644 --- a/InvenTree/templates/js/translated/part.js +++ b/InvenTree/templates/js/translated/part.js @@ -74,34 +74,34 @@ function partFields(options={}) { icon: 'fa-boxes', }, component: { - value: global_settings.PART_COMPONENT, + default: global_settings.PART_COMPONENT, group: 'attributes', }, assembly: { - value: global_settings.PART_ASSEMBLY, + default: global_settings.PART_ASSEMBLY, group: 'attributes', }, is_template: { - value: global_settings.PART_TEMPLATE, + default: global_settings.PART_TEMPLATE, group: 'attributes', }, trackable: { - value: global_settings.PART_TRACKABLE, + default: global_settings.PART_TRACKABLE, group: 'attributes', }, purchaseable: { - value: global_settings.PART_PURCHASEABLE, + default: global_settings.PART_PURCHASEABLE, group: 'attributes', onEdit: function(value, name, field, options) { setFormGroupVisibility('supplier', value, options); } }, salable: { - value: global_settings.PART_SALABLE, + default: global_settings.PART_SALABLE, group: 'attributes', }, virtual: { - value: global_settings.PART_VIRTUAL, + default: global_settings.PART_VIRTUAL, group: 'attributes', }, };