Skip to content

Instantly share code, notes, and snippets.

@AurelienLavorel
Created September 4, 2019 09:24
Show Gist options
  • Save AurelienLavorel/21071df8e35310ca02df432a19ab9a94 to your computer and use it in GitHub Desktop.
Save AurelienLavorel/21071df8e35310ca02df432a19ab9a94 to your computer and use it in GitHub Desktop.
fix_empty_block_error.patch
Index: vendor/magento/module-sales/Block/Adminhtml/Items/AbstractItems.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- src/vendor/magento/module-sales/Block/Adminhtml/Items/AbstractItems.php (date 1567588428000)
+++ src/vendor/magento/module-sales/Block/Adminhtml/Items/AbstractItems.php (date 1567588442526)
@@ -85,7 +85,7 @@
{
foreach ($blocks as $blockName) {
$block = $this->getLayout()->getBlock($blockName);
- if ($block->getRenderedBlock() === null) {
+ if ($block && $block->getRenderedBlock() === null) {
$block->setRenderedBlock($this);
}
$this->_columnRenders[$blockName] = $block;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment