|
@@ 366-369 (lines=4) @@
|
| 363 |
|
continue; |
| 364 |
|
} |
| 365 |
|
|
| 366 |
|
if (strlen($element->getValue()) > 0 && strpos($element->getValue(), 'sn.') === false) { |
| 367 |
|
$element->setValue('sn.' . $element->getValue()); |
| 368 |
|
$this->modelManager->persist($element); |
| 369 |
|
} |
| 370 |
|
|
| 371 |
|
$values = $element->getValues(); |
| 372 |
|
if (count($values) > 0) { |
|
@@ 375-378 (lines=4) @@
|
| 372 |
|
if (count($values) > 0) { |
| 373 |
|
/** @var \Shopware\Models\Config\Value $element */ |
| 374 |
|
$value = $values[0]; |
| 375 |
|
if (strlen($value->getValue()) > 0 && strpos($value->getValue(), 'sn.') === false) { |
| 376 |
|
$value->setValue('sn.' . $value->getValue()); |
| 377 |
|
$this->modelManager->persist($value); |
| 378 |
|
} |
| 379 |
|
} |
| 380 |
|
|
| 381 |
|
$this->modelManager->flush(); |