Skip to content

Commit

Permalink
Merge pull request #95 from netgen/NGSTACK-672-fix-migration-command
Browse files Browse the repository at this point in the history
NGSTACK-672 Preserve cropping settings on migration
  • Loading branch information
iherak authored Jan 10, 2023
2 parents 9f10680 + 57a0267 commit adc867d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bundle/Command/RefreshEzFieldsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,10 @@ private function updateNgrmAttribute(array $attribute, Value $value): void
}

$oldDataText = $attribute['data_text'];

$oldValue = new Value(json_decode($oldDataText, true));
$value->variations = $oldValue->variations;

$newDataText = json_encode($value);

if ($oldDataText === $newDataText) {
Expand Down

0 comments on commit adc867d

Please sign in to comment.