mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Hide project code field from build form if project codes not enabled
This commit is contained in:
parent
26226fc795
commit
4e210e3dfa
@ -34,7 +34,7 @@
|
||||
|
||||
|
||||
function buildFormFields() {
|
||||
return {
|
||||
let fields = {
|
||||
reference: {
|
||||
icon: 'fa-hashtag',
|
||||
},
|
||||
@ -84,6 +84,12 @@ function buildFormFields() {
|
||||
icon: 'fa-users',
|
||||
},
|
||||
};
|
||||
|
||||
if (!global_settings.PROJECT_CODES_ENABLED) {
|
||||
delete fields.project_code;
|
||||
}
|
||||
|
||||
return fields;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user