From 46408012fb11e9dcd880bd12c32d8d8dd4e2b954 Mon Sep 17 00:00:00 2001 From: Dave MacFarlane Date: Wed, 16 Aug 2023 10:15:13 -0400 Subject: [PATCH] [LINST/Dictionary] Add Numeric elements to dictionary Currently the numeric element type is only being added to the instrument data dictionary if it's on the top page. This fixes it so that the elements are always added to the dictionary regardless of the page. --- php/libraries/NDB_BVL_Instrument_LINST.class.inc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/php/libraries/NDB_BVL_Instrument_LINST.class.inc b/php/libraries/NDB_BVL_Instrument_LINST.class.inc index 495843a4358..1c196e3753d 100644 --- a/php/libraries/NDB_BVL_Instrument_LINST.class.inc +++ b/php/libraries/NDB_BVL_Instrument_LINST.class.inc @@ -734,14 +734,14 @@ class NDB_BVL_Instrument_LINST extends \NDB_BVL_Instrument case 'numeric': if ($addElements) { $this->addNumericElement($pieces[1], $pieces[2]); - $this->dictionary[] = new DictionaryItem( - $this->testName."_".$pieces[1], - $pieces[2], - $scope, - new IntegerType(), - new Cardinality(Cardinality::SINGLE), - ); } + $this->dictionary[] = new DictionaryItem( + $this->testName."_".$pieces[1], + $pieces[2], + $scope, + new IntegerType(), + new Cardinality(Cardinality::SINGLE), + ); if ($firstFieldOfPage) { $this->_requiredElements[] = $fieldname; $firstFieldOfPage = false;