Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mshroom committed May 23, 2024
1 parent 9b444f3 commit 5350495
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RecordManager/Base/Record/Ead3.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down

0 comments on commit 5350495

Please sign in to comment.