|
@@ 347-350 (lines=4) @@
|
| 344 |
|
continue; |
| 345 |
|
} |
| 346 |
|
|
| 347 |
|
if (strlen($element->getValue()) > 0 && strpos($element->getValue(), 'sn.') === false) { |
| 348 |
|
$element->setValue('sn.' . $element->getValue()); |
| 349 |
|
$this->modelManager->persist($element); |
| 350 |
|
} |
| 351 |
|
|
| 352 |
|
$values = $element->getValues(); |
| 353 |
|
if (count($values) > 0) { |
|
@@ 356-359 (lines=4) @@
|
| 353 |
|
if (count($values) > 0) { |
| 354 |
|
/** @var \Shopware\Models\Config\Value $element */ |
| 355 |
|
$value = $values[0]; |
| 356 |
|
if (strlen($value->getValue()) > 0 && strpos($value->getValue(), 'sn.') === false) { |
| 357 |
|
$value->setValue('sn.' . $value->getValue()); |
| 358 |
|
$this->modelManager->persist($value); |
| 359 |
|
} |
| 360 |
|
} |
| 361 |
|
|
| 362 |
|
$this->modelManager->flush(); |