Fixed expert mode issue

This commit is contained in:
Matias Griese 2021-02-01 19:14:53 +02:00
parent 21c6b56a27
commit 1aa15b24a2

View File

@ -65,8 +65,8 @@ class FlexObject implements FlexObjectInterface, FlexAuthorizeInterface
private $_flexDirectory;
/** @var FlexFormInterface[] */
private $_forms = [];
/** @var Blueprint|null */
private $_blueprint;
/** @var Blueprint[] */
private $_blueprint = [];
/** @var array */
private $_meta;
/** @var array */
@ -771,15 +771,15 @@ class FlexObject implements FlexObjectInterface, FlexAuthorizeInterface
*/
public function getBlueprint(string $name = '')
{
if (null === $this->_blueprint) {
if (!isset($this->_blueprint[$name])) {
$blueprint = $this->doGetBlueprint($name);
$blueprint->setScope('object');
$blueprint->setObject($this);
$this->_blueprint = $blueprint->init();
$this->_blueprint[$name] = $blueprint->init();
}
return $this->_blueprint;
return $this->_blueprint[$name];
}
/**