#StackBounty: #module #layout #adminhtml #magento2.2 Magento2 – missing adminhtml custom block after upgrade to 2.2

Bounty: 100

We had a custom block injected in adminhtml section. This block is managed in a module (let’s call it Vendor/Module) & it was working fine in Magento 2.1.*, following this methodology magento 2 – How to create a custom "admin" block and display it on an existing Admin page?

After upgrading to 2.2 the block have dissapeared

I have checked for the concrete layout (in our case sales_order_view.xml) for any structure changes in the new version, but containers & blocks look the same as we had in 2.1.*

Any ideas for this?

This is the concrete layout file which worked fine in 2.1.*

app/code/Vendor/Module/view/adminhtml/layout/sales_order_view.xml

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceBlock name="order_info">
            <block class="VendorModuleBlockAdminhtmlSalesOrderViewForm" name="our_unique_block_name" template="Vendor_Module::our_template.phtml"/>
        </referenceBlock>
    </body>
</page> 

UPDATE

Bounty: provide XML to inject a block inside sales_order_view adminhtml layout, explaining how to place it in diferent sections of the page


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.