Closed
Description
When you add 2 or more tabs to admin area, like order view page, by using the method addTabAfter
and the second new tab is placed after the first new tab the sort order does not work as expected.
Preconditions
- Magento 2.2.4
- PHP 7.1.13
- MySQL 5.6
Steps to reproduce
Example:
I created a module which make changes for the sales_order_view
handle in admin area and in my file Vendor/Module/view/adminhtml/layout/sales_order_view.xml
I add two new tabs using the method addTabAfter
:
skyhub_order_data_source
: is placed after the taborder_history
.skyhub_invoice_key
: is placed after theskyhub_order_data_source
.
When accessing the page in admin area the following sequence is rendered:
skyhub_order_data_source
skyhub_invoice_key
order_info
invoices
and all the rest.
It only works if I set the skyhub_invoice_key
tab to be placed after order_history
.