Skip to content

Fix aliases for resource controllers #15997

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 1 commit into from
Jan 25, 2022
Merged

Conversation

theboxer
Copy link
Member

@theboxer theboxer commented Jan 24, 2022

What does it do?

Fixes class aliases for resource controllers introduced in #15888

Why is it needed?

Create resource pages don't work, when you pass the class key, for example: /manager/?a=resource/create&parent=1&context_key=web&class_key=MODX\Revolution\modDocument will throw Error: Class 'DocumentCreateManagerController' not found

The class alias is defined before the class itself, which is probably invalid :)

How to test

Open /manager/?a=resource/create&parent=1&context_key=web&class_key=MODX\Revolution\modDocument with and without this fix.

@theboxer theboxer added the bug The issue in the code or project, which should be addressed. label Jan 24, 2022
@theboxer theboxer added this to the v3.0.0-rc2 milestone Jan 24, 2022
@cla-bot cla-bot bot added the cla-signed CLA confirmed for contributors to this PR. label Jan 24, 2022
@rthrash

This comment has been minimized.

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.

5 participants