Skip to content

Commit

Permalink
System Admin: fix uniqueness check when editing a page in Form Builder
Browse files Browse the repository at this point in the history
  • Loading branch information
SKuipers committed Jan 22, 2025
1 parent 8b470df commit 33d90bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ v29.0.00


Bug Fixes
Activity: fixed missing registration button for parents on View Activities page
System Admin: fixed field validation for Student Default Email in Form Builder
Activity registration: fix issue that registration button not shown to the parent.
System Admin: fixed uniqueness check when editing a page in Form Builder

v28.0.01
--------
Expand Down
3 changes: 2 additions & 1 deletion modules/System Admin/formBuilder_page_editProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
'name' => $_POST['name'] ?? '',
'introduction' => $_POST['introduction'] ?? '',
'postscript' => $_POST['postscript'] ?? '',
'gibbonFormID' => $_POST['gibbonFormID'] ?? '',
];

// Validate the required values are present
Expand All @@ -60,7 +61,7 @@
}

// Validate that this record is unique
if (!$formPageGateway->unique($data, ['name'], $gibbonFormPageID)) {
if (!$formPageGateway->unique($data, ['name', 'gibbonFormID'], $gibbonFormPageID)) {
$URL .= '&return=error7';
header("Location: {$URL}");
exit;
Expand Down

0 comments on commit 33d90bf

Please sign in to comment.