Fixes
This commit is contained in:
parent
fa9993e94b
commit
e47ec43c1c
@ -208,7 +208,8 @@ class Engine
|
||||
}
|
||||
|
||||
if(isset($this->variables[$option->getId()])) {
|
||||
$option->setValue($this->variables[$option->getId()]);
|
||||
$option->setRawValue($this->variables[$option->getId()]);
|
||||
$option->processValue();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -53,7 +53,7 @@ class OptionsRemoveTest extends \PHPUnit_Framework_TestCase
|
||||
$this->engine->setVariables(['gebyn' => 2]);
|
||||
$this->engine->calc('test1');
|
||||
|
||||
$this->assertEquals(2, $article->getOptionById('gebyn')->getValue());
|
||||
$this->assertEquals("Nein", $article->getOptionById('gebyn')->getValue());
|
||||
|
||||
$option = $article->getOptionById('gebwert');
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user