Blueprints: Fix for page blueprints

This commit is contained in:
Matias Griese
2016-02-29 13:14:16 +02:00
parent 2be8de4283
commit 8f5a30cc50
2 changed files with 2 additions and 2 deletions

View File

@@ -87,7 +87,7 @@ abstract class BlueprintForm implements \ArrayAccess, ExportInterface
* @param array $overrides
* @return $this
*/
public function setOverrides(array $overrides)
public function setOverrides($overrides)
{
$this->overrides = $overrides;

View File

@@ -86,7 +86,7 @@ class Blueprints
{
$blueprint = new Blueprint($name);
if (is_array($this->search)) {
if (is_array($this->search) || is_object($this->search)) {
$blueprint->setOverrides($this->search);
} else {
$blueprint->setContext($this->search);