Skip to content

Commit

Permalink
Admissions: fix secondParent checkbox default value
Browse files Browse the repository at this point in the history
  • Loading branch information
SKuipers committed May 23, 2024
1 parent d27a6f6 commit b0d3f8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ v28.0.00
Tweaks & Additions

Bug Fixes
Admissions: fix "Do not include a second parent" being accidentally checked by default

v27.0.00
--------
Expand Down
2 changes: 1 addition & 1 deletion modules/Admissions/applicationForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@

// Load values from the form data storage
$values = $formData->getData();
$values['secondParent'] = $formData->get('secondParent') ?? ($formData->has('parent2surname') ? 'Yes' : 'No');
$values['secondParent'] = $formData->get('secondParent') ?? ($formData->has('parent2surname') ? 'No' : 'Yes');

// Is the current application incomplete?
$incomplete = empty($formData->getStatus()) || $formData->getStatus() == 'Incomplete';
Expand Down

0 comments on commit b0d3f8b

Please sign in to comment.