mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-13 18:45:40 +00:00
Hide project code field from build form if project codes not enabled
This commit is contained in:
@ -34,7 +34,7 @@
|
|||||||
|
|
||||||
|
|
||||||
function buildFormFields() {
|
function buildFormFields() {
|
||||||
return {
|
let fields = {
|
||||||
reference: {
|
reference: {
|
||||||
icon: 'fa-hashtag',
|
icon: 'fa-hashtag',
|
||||||
},
|
},
|
||||||
@ -84,6 +84,12 @@ function buildFormFields() {
|
|||||||
icon: 'fa-users',
|
icon: 'fa-users',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (!global_settings.PROJECT_CODES_ENABLED) {
|
||||||
|
delete fields.project_code;
|
||||||
|
}
|
||||||
|
|
||||||
|
return fields;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user