From 6d6d0d9b4740ad907f929e40e904a4356af5cb09 Mon Sep 17 00:00:00 2001 From: Rida Abou-Haidar Date: Tue, 12 Sep 2023 15:03:14 -0400 Subject: [PATCH] [Dict] Skip hidden fields in data dictionary (#8882) 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. --- php/libraries/LorisFormDictionaryImpl.class.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/php/libraries/LorisFormDictionaryImpl.class.inc b/php/libraries/LorisFormDictionaryImpl.class.inc index 9fae78137c8..f6290a60407 100644 --- a/php/libraries/LorisFormDictionaryImpl.class.inc +++ b/php/libraries/LorisFormDictionaryImpl.class.inc @@ -131,6 +131,7 @@ trait LorisFormDictionaryImpl $t = new \LORIS\Data\Types\StringType(255); break; case 'header': + case 'hidden': continue 2; default: throw new \LorisException(