Skip to content

Fix selecting parent in quick create resource #16002

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

Merged
merged 2 commits into from
Feb 1, 2022

Conversation

theboxer
Copy link
Member

What does it do?

Sends 0 instead of undefined as currentid to the parent select.

Why is it needed?

The parent select component uses MODx.request.id as default value if no currentid is passed. So the parent select thinks you're trying to set a parent for the currently opened resource, not for the one in the quick create window.

How to test

Check #15983

Related issue(s)/PR(s)

Resolves #15983

@cla-bot cla-bot bot added the cla-signed CLA confirmed for contributors to this PR. label Jan 25, 2022
@theboxer theboxer linked an issue Jan 25, 2022 that may be closed by this pull request
Copy link
Collaborator

@Ruslan-Aleev Ruslan-Aleev left a comment

Choose a reason for hiding this comment

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

Seems to work as it should :)

@JoshuaLuckers JoshuaLuckers added the pr/ready-for-merging Pull request reviewed and tested and ready for merging. label Feb 1, 2022
@Mark-H Mark-H added this to the v3.0.0-rc2 milestone Feb 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

Error selecting parent resource in quick resource creation window
5 participants