🚑 fix(core) Better handling of initial value in CompositeAttribute

issue #5886
parent 67d0f936
......@@ -99,6 +99,14 @@ class CompositeAttribute extends Attribute
$this->linearRendering = $bool;
}
function loadValue (array $attrs)
{
parent::loadValue($attrs);
foreach ($this->attributes as $attribute) {
$attribute->setInitialValue($attribute->getValue());
}
}
function readValues (string $value): array
{
$res = preg_match($this->readFormat, $value, $m);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment