This commit is contained in:
Thomas Peterson 2025-06-03 13:10:37 +02:00
parent 0cf2a88d98
commit 24fe351d64
3 changed files with 4 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -114,7 +114,6 @@ class Select extends Base
}
if($system) {
$this->element->setColorSystem($colorSystem);
foreach ($system->getAllColors() as $color) {
$optColor = new \PSC\Library\Calc\Option\Type\Select\ColorOpt();
@ -133,6 +132,7 @@ class Select extends Base
return $temp;
});
$this->element->setColorSystem($colorSystem);
$this->element->addOptions($value);
}

View File

@ -42,6 +42,8 @@ class CalcTest extends TestCase
{
$this->engine->calc();
$this->assertSame(76.55, $this->engine->getPrice());
$this->assertCount(86, $this->engine->getArticle()->getOptionById('farbe_1_v_wert_hks')->getOptions());
$this->assertCount(86, $this->engine->getArticle()->getOptionById('farbe_2_v_wert_hks')->getOptions());
}
}