Skip to content

Commit

Permalink
Updated the array key to get the monarc version.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruslan Baidan committed Jan 29, 2020
1 parent 863e6fb commit 57cf12c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Service/ObjectExportService.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public function importFromArray($data, $anr, $modeImport = 'merge', &$objectsCac
{
if (isset($data['type']) && $data['type'] == 'object'
) {
$monarcVersion = $data['monarcVersion'] ? $data['monarcVersion'] : ''; //set the version of monarc to choose the right algo
$monarcVersion = $data['monarc_version'] ?? ''; //set the version of monarc to choose the right algo
if (isset(
$data['object']['name' . $this->getLanguage()],
$objectsCache['objects'][$data['object']['name' . $this->getLanguage()]]
Expand Down

0 comments on commit 57cf12c

Please sign in to comment.