diff --git a/webapp/src/Service/ImportProblemService.php b/webapp/src/Service/ImportProblemService.php index bb771291ee..ecf012c89a 100644 --- a/webapp/src/Service/ImportProblemService.php +++ b/webapp/src/Service/ImportProblemService.php @@ -286,6 +286,11 @@ public function importZippedProblem( $yamlProblemProperties['typesAsString'] = ['pass-fail']; } + if (!in_array('pass-fail', $yamlProblemProperties['typesAsString']) && + !in_array('scoring', $yamlProblemProperties['typesAsString'])) { + $yamlProblemProperties['typesAsString'][] = 'pass-fail'; + } + if (isset($yamlData['validator_flags'])) { $yamlProblemProperties['special_compare_args'] = $yamlData['validator_flags']; }