From 53504952193ac7ced9e029c4811477f6ffdc5876 Mon Sep 17 00:00:00 2001 From: mshroom <32199029+mshroom@users.noreply.github.com> Date: Thu, 23 May 2024 15:25:43 +0300 Subject: [PATCH] small fix --- src/RecordManager/Base/Record/Ead3.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RecordManager/Base/Record/Ead3.php b/src/RecordManager/Base/Record/Ead3.php index 84e61ce7..4bdd4e60 100644 --- a/src/RecordManager/Base/Record/Ead3.php +++ b/src/RecordManager/Base/Record/Ead3.php @@ -531,7 +531,7 @@ protected function getHierarchyFields(array &$data): void $seqLabel = $this->getDriverParam('sequenceUnitIdLabel', 'sequence'); if ($seqLabel) { foreach ($this->doc->did->unitid ?? [] as $unitId) { - $firstId = $firstId ?: $unitId; + $firstId = $firstId ?: (string)$unitId; if ($seqLabel === (string)$unitId->attributes()->label) { $sequenceUnitId = (string)$unitId; $data['hierarchy_sequence']