|
@@ -60,7 +60,7 @@ discard block |
|
|
block discarded – undo |
|
60
|
60
|
{ |
|
61
|
61
|
if ($options['container']) { |
|
62
|
62
|
$page = $options['container']; |
|
63
|
|
- $choiceFilter = function ($choices) use ($page) { |
|
|
63
|
+ $choiceFilter = function($choices) use ($page) { |
|
64
|
64
|
$ret = array(); |
|
65
|
65
|
if ($page instanceof ContentItemContainer && null !== $page->getContentItemMatrix()) { |
|
66
|
66
|
$types = $page->getContentItemMatrix()->getTypes(); |
|
@@ -120,7 +120,7 @@ discard block |
|
|
block discarded – undo |
|
120
|
120
|
} |
|
121
|
121
|
if ($isPersistedEntity && $typeAdmin = $this->sonata->getAdminByClass(get_class($subject))) { |
|
122
|
122
|
$view->vars['type'] = Str::humanize(Str::classname($subject->getConvertToType())); |
|
123
|
|
- $childAdmin = $this->sonata->getAdminByAdminCode($parentAdmin->getCode() . '|' . $typeAdmin->getCode()); |
|
|
123
|
+ $childAdmin = $this->sonata->getAdminByAdminCode($parentAdmin->getCode().'|'.$typeAdmin->getCode()); |
|
124
|
124
|
$childAdmin->setRequest($genericAdmin->getRequest()); |
|
125
|
125
|
|
|
126
|
126
|
if ($subject && $subject->getPage() && $subject->getPage()->getId()) { |
Please login to merge, or discard this patch.