Skip to content

Commit

Permalink
create record with external id fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitexus committed Nov 16, 2023
1 parent 3c8a11f commit e2adba6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/AbraFlexi/RO.php
Original file line number Diff line number Diff line change
Expand Up @@ -1666,6 +1666,14 @@ public function getJsonizedData($data = null, $options = 0)
['@version' => $this->protoVersion],
$this->getDataForJSON($data)
);
$evidence = $this->getEvidence();
if (
$evidence &&
array_key_exists($evidence, $dataToJsonize) &&
array_key_exists('external-ids', $dataToJsonize[$evidence])
) {
$dataToJsonize[$evidence]['external-ids'] = array_values($dataToJsonize[$evidence]['external-ids']);
}
$jsonRaw = json_encode(
[$this->nameSpace => $dataToJsonize],
$options
Expand Down

0 comments on commit e2adba6

Please sign in to comment.