Skip to content

Commit dd66dfe

Browse files
committed
Relation processing fix
1 parent c448364 commit dd66dfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AbraFlexi/RO.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1136,7 +1136,7 @@ public function fixRecordTypes(array $record, $evidence = null)
11361136
}
11371137
} else { // ExtIDs
11381138
if (\count($record[$column]) === 1) {
1139-
$record[$column] = new Relation(\array_key_exists('kod', $value[0]) ? $value[0]['kod'] : $value[0]['id'], $value[0]['typDoklK'], $value[0]['id'], $value[0]['typDoklK@showAs']);
1139+
$record[$column] = new Relation(\array_key_exists('kod', $value) ? $value['kod'] : $value['id'], $value['typDoklK'], $value['id'], $value['typDoklK@showAs']);
11401140
} else {
11411141
foreach ($record[$column] as $relPos => $rawRelation) {
11421142
[,$ext,$extId] = explode(':', $rawRelation);

0 commit comments

Comments
 (0)