Fixed not finishing Linework when ist_abschluss is not FTU

This commit is contained in:
Frank Schubert
2023-10-19 13:38:28 +02:00
parent 50dd12391e
commit 702e9f54c5

View File

@@ -610,13 +610,19 @@ function validateWorkflowItem(id) {
console.log("abschlusstyp: " + $("#wfitem_abschlusstyp_" + id).val());
console.log("ist abschlusstyp: " + $("#wfitem_ist_abschlusstyp_" + id).val());
if($("#wfitem_ist_abschlusstyp_" + id).val() == "SC/APC in FTU") {
if($("#wfitem_abschlusstyp_" + id).val() == "SC/APC in FTU") {
required_fields["inhouse_cabling_supplied"] = "bool";
required_fields["inhouse_cabling_deployed"] = "bool";
} else if($("#wfitem_abschlusstyp_" + id).val() == "SC/APC in FTU") {
required_fields["inhouse_cabling_supplied"] = "bool";
required_fields["inhouse_cabling_deployed"] = "bool";
}
}
if($("#wfitem_ist_abschlusstyp_" + id).val().length) {
if($("#wfitem_ist_abschlusstyp_" + id).val() == "SC/APC in FTU") {
required_fields["inhouse_cabling_supplied"] = "bool";
required_fields["inhouse_cabling_deployed"] = "bool";
} else {
delete required_fields["inhouse_cabling_supplied"];
delete required_fields["inhouse_cabling_deployed"];
}
}
var missing = false;
for(var field1 in required_fields) {