Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.x] Fixes active tab state for form customization when disabling regions #16401

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

halftrainedharry
Copy link
Contributor

What does it do?

Fixes the scope of the variable id in the function.

Why is it needed?

When disabling regions in a Form customization set, for example modx-resource-access-permissions, the default Document tab does not have the active state/styling.

How to test

Create a new Form customization set for 'Create and Edit resource', and disable one of the regions, for example modx-resource-access-permissions. Then go to a Resource create/update page, and verify that the Document tab has the active tab styling.

Related issue(s)/PR(s)

Resolves #16399

@cla-bot cla-bot bot added the cla-signed CLA confirmed for contributors to this PR. label Feb 26, 2023
Copy link
Collaborator

@smg6511 smg6511 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, that was my bad from #15889. Good catch.

@rthrash
Copy link
Member

rthrash commented Mar 30, 2023

This pull request has been mentioned on MODX Community. There might be relevant details there:

https://community.modx.com/t/manager-form-customisation/6589/9

@rthrash rthrash added this to the v3.0.4 milestone Sep 21, 2023
@rthrash rthrash added pr/ready-for-merging Pull request reviewed and tested and ready for merging. bug The issue in the code or project, which should be addressed. labels Sep 29, 2023
@opengeek opengeek merged commit ec1a492 into modxcms:3.x Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue in the code or project, which should be addressed. cla-signed CLA confirmed for contributors to this PR. pr/ready-for-merging Pull request reviewed and tested and ready for merging.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Form customization: when disabling regions Document tab has no active state.
5 participants