mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
Fixed expert mode issue
This commit is contained in:
parent
21c6b56a27
commit
1aa15b24a2
|
|
@ -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];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user