-
-
Notifications
You must be signed in to change notification settings - Fork 528
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
MODX3 — OnResourceSort doesn't work #15657
Comments
This issue has been mentioned on MODX Community. There might be relevant details there: https://community.modx.com/t/modx-3-coding-question-onresourcesort-not-working/3879/5 |
Had a brief look at the code, but did not see a reason for that to not run unless it fails to actually change the sort. I'm assuming you do see sorting changes still applied after a refresh? |
Yes, I manually sort in the tree and confirm the menuindex change in the database. As a test, I made a plugin with this code: $modx->log(modX::LOG_LEVEL_ERROR, 'Testing the log'); and select OnResourceSort for the system event. Works in 2.8.1, doesn't work in 3.0 alpha. |
On the other hand, OnResourceBeforeSort DOES trigger the code. |
I can confirm this issue.
$value is an array with |
Related issue: #15172 |
Just tested this on the latest alpha 3 release (Oct 26 2021), and it now works! |
Bug report
Summary
OnResourceSort doesn't seem to fire.
Step to reproduce
Create a plugin that does anything as a result of OnResourceSort firing.
Observed behavior
Nothing happens.
Environment
MODX 3 Alpha 3 2021-04-06
The text was updated successfully, but these errors were encountered: