Skip to content

Commit adc867d

Browse files
authored
Merge pull request #95 from netgen/NGSTACK-672-fix-migration-command
NGSTACK-672 Preserve cropping settings on migration
2 parents 9f10680 + 57a0267 commit adc867d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

bundle/Command/RefreshEzFieldsCommand.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,10 @@ private function updateNgrmAttribute(array $attribute, Value $value): void
569569
}
570570

571571
$oldDataText = $attribute['data_text'];
572+
573+
$oldValue = new Value(json_decode($oldDataText, true));
574+
$value->variations = $oldValue->variations;
575+
572576
$newDataText = json_encode($value);
573577

574578
if ($oldDataText === $newDataText) {

0 commit comments

Comments
 (0)