|
@@ -58,7 +58,7 @@ discard block |
|
|
block discarded – undo |
|
58
|
58
|
{ |
|
59
|
59
|
if ($options['container']) { |
|
60
|
60
|
$page = $options['container']; |
|
61
|
|
- $choiceFilter = function ($choices) use ($page) { |
|
|
61
|
+ $choiceFilter = function($choices) use ($page) { |
|
62
|
62
|
$ret = array(); |
|
63
|
63
|
if ($page instanceof ContentItemContainer && null !== $page->getContentItemMatrix()) { |
|
64
|
64
|
$types = $page->getContentItemMatrix()->getTypes(); |
|
@@ -111,7 +111,7 @@ discard block |
|
|
block discarded – undo |
|
111
|
111
|
// the `zicht/versioning-bundle` is used (as those ContentItem entities do exist but do *not* have an id. |
|
112
|
112
|
if ($subject->getRegion() !== null && $typeAdmin = $this->sonata->getAdminByClass(get_class($subject))) { |
|
113
|
113
|
$view->vars['type'] = Str::humanize($subject->getType()); |
|
114
|
|
- $childAdmin = $this->sonata->getAdminByAdminCode($parentAdmin->getCode() . '|' . $typeAdmin->getCode()); |
|
|
114
|
+ $childAdmin = $this->sonata->getAdminByAdminCode($parentAdmin->getCode().'|'.$typeAdmin->getCode()); |
|
115
|
115
|
$childAdmin->setRequest($genericAdmin->getRequest()); |
|
116
|
116
|
|
|
117
|
117
|
if ($subject && $subject->getPage() && $subject->getPage()->getId()) { |
Please login to merge, or discard this patch.