Hide project code field from build form if project codes not enabled

This commit is contained in:
Oliver 2023-05-13 23:04:28 +10:00
parent 26226fc795
commit 4e210e3dfa

View File

@ -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;
}
/*