Plugin configuration did not load anymore when type was SELECTION

due to not existing object
This commit is contained in:
cm-schl 2022-12-06 14:46:23 +01:00
parent 544ec16830
commit 5efd926f22

View file

@ -68,7 +68,7 @@ class Property implements \JsonSerializable
} }
break; break;
case PluginPropertyType::SELECTION: case PluginPropertyType::SELECTION:
if ($this->aOptions && \in_array($mValue, $oItem->Options())) { if ($this->aOptions && \in_array($mValue, $this->Options())) {
$this->mValue = (string) $mValue; $this->mValue = (string) $mValue;
} }
break; break;