aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFélix Arreola Rodríguez <fgatuno.123@gmail.com>2025-05-02 21:10:31 +0000
committerFélix Arreola Rodríguez <fgatuno.123@gmail.com>2025-05-02 21:10:31 +0000
commit1d942483866ee91bc5d5c5227ab19528fc4ad2c6 (patch)
tree16abe8568487a1b2ea33feb1ce1ecbd32d56f786 /src
parent23d13984f23e306c4015bdfbdb073a35c4213915 (diff)
downloadboca-1d942483866ee91bc5d5c5227ab19528fc4ad2c6.tar.gz
boca-1d942483866ee91bc5d5c5227ab19528fc4ad2c6.zip
Fixed issue when color problem is updated, autojudge setting per problem is set to none.
Diffstat (limited to 'src')
-rw-r--r--src/admin/problem.php3
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");