mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-13 02:25:38 +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() {
|
||||
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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user