magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.44k stars 9.29k forks source link

Activate Tab no longer works on legacy tabs/forms #30166

Open bvboas opened 3 years ago

bvboas commented 3 years ago

Preconditions (*)

  1. Magento 2.4-develop
  2. Legacy Form with Left Tabs
  3. URL with param: active_tab/TAB_NAME

Steps to reproduce (*)

  1. Create a new record in a form with multiple left tabs
  2. Select one, other than the first left tab
  3. Save the form

Expected result (*)

  1. Users should be redirected back to the form with the previous selected left tab active

Actual result (*)

  1. Users are sent back to the form, and the first left tab is always selected

Media (Not Working 2.4)

  1. Video: https://imgur.com/a/pnb3Gh1

Media (Working 2.3.5)

  1. Video: https://imgur.com/a/TINgiNT

Other Info

This bug was introduced by these two commits:

https://github.com/magento/magento2/commit/a3d9095b1352eb585399e7cce850112471955607#diff-926633484bdda3384356b3f61121a4e1

On line 34, the <li> element now has an ID attribute. The problem is that this ID is now duplicated, because the <a> element inside this <li> already has the same ID. And this now leads the "mage/backend/tabs" widget to fail loading the proper element

https://github.com/magento/magento2/commit/82f5a3696c55e65387fc330749e7267dcc269cf1#diff-926633484bdda3384356b3f61121a4e1 Added the CSS class 'no-display',


m2-assistant[bot] commented 3 years ago

Hi @bvboas. Thank you for your report. To help us process this issue please make sure that you provided the following information:

Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:

@magento give me 2.4-develop instance - upcoming 2.4.x release

For more details, please, review the Magento Contributor Assistant documentation.

Please, add a comment to assign the issue: @magento I am working on this


:clock10: You can find the schedule on the Magento Community Calendar page.

:telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket.

:movie_camera: You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel

:pencil2: Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel

m2-assistant[bot] commented 3 years ago

Hi @engcom-Bravo. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

engcom-Bravo commented 3 years ago

The issue is reproducible on the latest 2.4-develop

magento-engcom-team commented 3 years ago

:white_check_mark: Confirmed by @engcom-Bravo Thank you for verifying the issue. Based on the provided information internal tickets MC-38658 were created

Issue Available: @engcom-Bravo, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

mrtuvn commented 3 years ago

good catch

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 14 days if no further activity occurs. Is this issue still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? Thank you for your contributions!

mrtuvn commented 3 years ago

This issue is not a stale

jajajaime commented 2 years ago

I submitted a pull request that fixes this https://github.com/magento/magento2/pull/35779, which is just a one character change.

m2-assistant[bot] commented 2 months ago

Hi @engcom-Bravo. Thank you for working on this issue. Looks like this issue is already verified and confirmed. But if you want to validate it one more time, please, go though the following instruction:


engcom-Bravo commented 2 months ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 2 months ago

Hi @engcom-Bravo. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 2 months ago

Hi @engcom-Bravo, here is your Magento Instance: https://ecbff7c182e2e02d420ceb8720e71af0.instances-prod.magento-community.engineering Admin access: https://ecbff7c182e2e02d420ceb8720e71af0.instances-prod.magento-community.engineering/admin_ad76 Login: cbf63e02 Password: cb6a2804fcf7

engcom-Bravo commented 2 months ago

Hi @bvboas,

Thanks for your reporting and collaboration.

We have verified the issue in Latest 2.4-develop instance and the issue is reproducible.Kindly refer the attached video.

https://github.com/magento/magento2/assets/51680745/0974c5cc-fdce-4924-a801-aed18acaed66

Users are sent back to the form, and the first left tab is always selected

Hence Confirming the issue.

Thanks

github-jira-sync-bot commented 2 months ago

:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-12033 is successfully created for this GitHub issue.

m2-assistant[bot] commented 2 months ago

:white_check_mark: Confirmed by @engcom-Bravo. Thank you for verifying the issue.
Issue Available: @engcom-Bravo, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.