Skip to content

Admin tabs order not working properly #16174

Closed
@tiagosampaio

Description

@tiagosampaio

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

  1. Magento 2.2.4
  2. PHP 7.1.13
  3. 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:

  1. skyhub_order_data_source: is placed after the tab order_history.
  2. skyhub_invoice_key: is placed after the skyhub_order_data_source.

When accessing the page in admin area the following sequence is rendered:

  1. skyhub_order_data_source
  2. skyhub_invoice_key
  3. order_info
  4. invoices and all the rest.

It only works if I set the skyhub_invoice_key tab to be placed after order_history.

Expected result

screen shot 2018-06-15 at 17 56 35

Actual result

screen shot 2018-06-15 at 17 54 24

Metadata

Metadata

Assignees

No one assigned

    Labels

    Fixed in 2.1.xThe issue has been fixed in 2.1 release lineFixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: Format is validGate 1 Passed. Automatic verification of issue format passed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions