This commit is contained in:
Thomas Peterson 2018-11-23 13:18:07 +01:00
parent fa9993e94b
commit e47ec43c1c
2 changed files with 3 additions and 2 deletions

View File

@ -208,7 +208,8 @@ class Engine
} }
if(isset($this->variables[$option->getId()])) { if(isset($this->variables[$option->getId()])) {
$option->setValue($this->variables[$option->getId()]); $option->setRawValue($this->variables[$option->getId()]);
$option->processValue();
} }
} }

View File

@ -53,7 +53,7 @@ class OptionsRemoveTest extends \PHPUnit_Framework_TestCase
$this->engine->setVariables(['gebyn' => 2]); $this->engine->setVariables(['gebyn' => 2]);
$this->engine->calc('test1'); $this->engine->calc('test1');
$this->assertEquals(2, $article->getOptionById('gebyn')->getValue()); $this->assertEquals("Nein", $article->getOptionById('gebyn')->getValue());
$option = $article->getOptionById('gebwert'); $option = $article->getOptionById('gebwert');