Skip to content

Commit

Permalink
[Dict] Skip hidden fields in data dictionary (#8882)
Browse files Browse the repository at this point in the history
Some instruments use hidden fields to pass data to the frontend. This skips over the fields in the dictionary building to prevent a 500 error.
  • Loading branch information
ridz1208 committed Sep 12, 2023
1 parent 80740e4 commit 6d6d0d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions php/libraries/LorisFormDictionaryImpl.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ trait LorisFormDictionaryImpl
$t = new \LORIS\Data\Types\StringType(255);
break;
case 'header':
case 'hidden':
continue 2;
default:
throw new \LorisException(
Expand Down

0 comments on commit 6d6d0d9

Please # to comment.