Skip to content

Commit 00001fb

Browse files
isxamnikshostko
authored andcommitted
MAGETWO-69289: The "extra_customer_info" container duplicates in template
- Exclude container from output
1 parent 25bf998 commit 00001fb

File tree

1 file changed

+22
-0
lines changed
  • app/code/Magento/Sales/Block/Adminhtml/Order/View

1 file changed

+22
-0
lines changed

app/code/Magento/Sales/Block/Adminhtml/Order/View/Info.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,4 +303,26 @@ public function getFormattedAddress(Address $address)
303303
{
304304
return $this->addressRenderer->format($address, 'html');
305305
}
306+
307+
/**
308+
* @inheritdoc
309+
*/
310+
public function getChildHtml($alias = '', $useCache = true)
311+
{
312+
$layout = $this->getLayout();
313+
314+
if ($alias || !$layout) {
315+
return parent::getChildHtml($alias, $useCache);
316+
}
317+
318+
$childNames = $layout->getChildNames($this->getNameInLayout());
319+
$outputChildNames = array_diff($childNames, ['extra_customer_info']);
320+
321+
$out = '';
322+
foreach ($outputChildNames as $childName) {
323+
$out .= $layout->renderElement($childName, $useCache);
324+
}
325+
326+
return $out;
327+
}
306328
}

0 commit comments

Comments
 (0)