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() {
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue