Skip to content

Commit

Permalink
fixed naming of parameters in ParamterDataFixture
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasLudvik committed Oct 16, 2023
1 parent f29a201 commit 8d58400
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/DataFixtures/Demo/ParameterDataFixture.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ public function load(ObjectManager $manager)
$product2 = $this->getReference(ProductDataFixture::PRODUCT_PREFIX . '2');

foreach ($this->domain->getAllLocales() as $locale) {
$parameterValueRed = $this->getParameterValue($locale, t('black', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $locale), '#000000');
$this->addParameterValueToProduct($product2, $parameterColor, $parameterValueRed);
$parameterValueBlack = $this->getParameterValue($locale, t('black', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $locale), '#000000');
$this->addParameterValueToProduct($product2, $parameterColor, $parameterValueBlack);
$parameterValueMetal = $this->getParameterValue($locale, t('metal', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $locale));
$this->addParameterValueToProduct($product2, $parameterMaterial, $parameterValueMetal);
}
Expand Down

0 comments on commit 8d58400

Please sign in to comment.