diff options
| author | Félix Arreola Rodríguez <fgatuno.123@gmail.com> | 2025-05-02 21:10:31 +0000 |
|---|---|---|
| committer | Félix Arreola Rodríguez <fgatuno.123@gmail.com> | 2025-05-02 21:10:31 +0000 |
| commit | 1d942483866ee91bc5d5c5227ab19528fc4ad2c6 (patch) | |
| tree | 16abe8568487a1b2ea33feb1ce1ecbd32d56f786 | |
| parent | 23d13984f23e306c4015bdfbdb073a35c4213915 (diff) | |
| download | boca-1d942483866ee91bc5d5c5227ab19528fc4ad2c6.tar.gz boca-1d942483866ee91bc5d5c5227ab19528fc4ad2c6.zip | |
Fixed issue when color problem is updated, autojudge setting per problem is set to none.
| -rw-r--r-- | src/admin/problem.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/admin/problem.php b/src/admin/problem.php index 9024544..957c9da 100644 --- a/src/admin/problem.php +++ b/src/admin/problem.php @@ -231,6 +231,9 @@ for ($i=0; $i<count($prob); $i++) { $param['fake'] = 'f'; $param['colorname'] = trim($_POST["colorname" . $prob[$i]['number']]); $param['color'] = trim($_POST["color" . $prob[$i]['number']]); + if (isset ($prob[$i]['autojudge'])) { + $param['autojudge'] = ((integer) $prob[$i]['autojudge']); + } DBNewProblem ($_SESSION["usertable"]["contestnumber"], $param); } ForceLoad("problem.php"); |