Skip to content

Commit

Permalink
Address Issue #1381
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffhumphrey committed Dec 12, 2022
1 parent 02bc3dd commit 3434b56
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions admin/judging_locations.admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -751,12 +751,12 @@
<div class="radio">
<!-- Input Here -->
<label>
<input type="radio" name="judgingLocType" value="0" id="judgingLocType_0" <?php if (($section == "step5") || ($action == "add")) echo "CHECKED"; if ((isset($row_judging['judgingLocType'])) && ($section != "step5") && ($row_judging['judgingLocType'] == "0")) echo "CHECKED"; ?> /> Traditional <small>(typically a single day in a central location)</small>
<input type="radio" name="judgingLocType" value="0" id="judgingLocType_0" <?php if (($section == "step5") || ($action == "add")) echo "CHECKED"; if ((isset($row_judging['judgingLocType'])) && ($section != "step5") && ($row_judging['judgingLocType'] == "0")) echo "CHECKED"; ?> required /> Traditional <small>(typically a single day in a central location)</small>
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="judgingLocType" value="1" id="judgingLocType_1" <?php if ((isset($row_judging['judgingLocType'])) && ($section != "step5") && ($row_judging['judgingLocType'] == "1")) echo "CHECKED"; ?>/> Distributed <small>(multi-day and/or multi-location)</small>
<input type="radio" name="judgingLocType" value="1" id="judgingLocType_1" <?php if ((isset($row_judging['judgingLocType'])) && ($section != "step5") && ($row_judging['judgingLocType'] == "1")) echo "CHECKED"; ?> required /> Distributed <small>(multi-day and/or multi-location)</small>
</label>
</div>
<span class="help-block">Indicate whether judge teams in this session will be evaluating entries at a single, designated location, typically collectively, or over a series of days in various locations. For example, choose <em>Distributed</em> if judges will be evaluating entries virtually - synchronously or asynchronously - or if locations will be ad-hoc, such as in a judge team member home.</span>
Expand Down
3 changes: 2 additions & 1 deletion includes/process/process_archive_hosted.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
'brewerJudge' => 'N',
'brewerSteward' => 'N',
'brewerJudgeLocation' => NULL,
'brewerStewardLocation' => NULL
'brewerStewardLocation' => NULL,
'brewerDropOff' => '999'
);
$result = $db_conn->update ($update_table, $data);
if (!$result) {
Expand Down
4 changes: 3 additions & 1 deletion includes/process/process_judging_locations.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
$judgingLocation = sterilize($judgingLocation);
$judgingLocType = sterilize($_POST['judgingLocType']);

if (empty($judgingLocType)) $judgingLocType = 0;

$judgingRounds = "";
if (isset($_POST['judgingRounds'])) $judgingRounds = sterilize($_POST['judgingRounds']);

Expand All @@ -30,7 +32,7 @@

$update_table = $prefix."judging_locations";
$data = array(
'judgingLocType' => blank_to_null($judgingLocType),
'judgingLocType' => $judgingLocType,
'judgingDate' => blank_to_null($judgingDate),
'judgingDateEnd' => blank_to_null($judgingDateEnd),
'judgingLocation' => blank_to_null($judgingLocation),
Expand Down

0 comments on commit 3434b56

Please sign in to comment.