Commit 2a0cb1ad authored by Ryan Herbert's avatar Ryan Herbert
Browse files

Merge branch 'hotfix-c/fix_pre_process_file_validation' into dev

parents 519f37b7 2cf867bb
......@@ -1125,8 +1125,10 @@ Database.prototype = {
required_files = pp_option[i].getAttribute("required_files");
}
}
if (required_files == 2 && document.getElementById("upload_file2").value ==""){
var upload1 = document.getElementById("upload_file").value;
var upload2 = document.getElementById("upload_file2").value;
if (required_files == 2 && (upload1 === "" || upload2 === "")){
console.log({"type": "flash", "msg" : "2 files are required for the selected pre-process", "priority": 2});
return false
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment