diff options
| author | Bruno Cesar Ribas <bcribas@users.noreply.github.com> | 2025-09-22 17:37:30 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-22 17:37:30 +0000 |
| commit | 4aad2323309e40e1055c8664b5423e372b0dd2eb (patch) | |
| tree | f85716ba209a025d0d5a709dd315712a0d27819e /src/admin/problem.php | |
| parent | 17c329ef861181166b2d4bb751c6e8b858e22d31 (diff) | |
| parent | 1d942483866ee91bc5d5c5227ab19528fc4ad2c6 (diff) | |
| download | boca-4aad2323309e40e1055c8664b5423e372b0dd2eb.tar.gz boca-4aad2323309e40e1055c8664b5423e372b0dd2eb.zip | |
Merge pull request #44 from gatuno/fix_problem_color_autojudge
Fixed issue when color problem is updated
Diffstat (limited to 'src/admin/problem.php')
| -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"); |