Problem/Motivation
There's a sort($parameters->conditions); in MenuTreeStorage::loadTreeData. But these conditions are an associated array with the db column being the key. This gets lost.
Proposed resolution
Use asort
Remaining tasks
Write a test.
User interface changes
None.
API changes
None.
Beta phase evaluation
| Issue category | Bug because disabled links don't get filtered |
|---|---|
| Prioritized changes | This is a bugfix. |
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 2398805-6.patch | 2.59 KB | dawehner |
| #6 | interdiff.txt | 1.84 KB | dawehner |
| #1 | 2398805-1.patch | 1.62 KB | dawehner |
| #1 | 2398805-1-fail.patch | 940 bytes | dawehner |
| asort.patch | 717 bytes | chx |
Comments
Comment #1
dawehnerHere is a test for that. Good spot of this bug!
Comment #2
chx commentedI do not think it's RTBC'ing my code when all I wrote is 1 character (literally).
Comment #4
dawehnerHa, true.
Comment #5
chx commentedComment #6
dawehnerA voice convinced me to also test
::onlyEnabledLinks():)Comment #9
chx commentedBot fail.
Comment #10
alexpottCommitted 8096a6c and pushed to 8.0.x. Thanks!
Thanks for adding the beta evaluation.
Comment #12
wim leersGreat fix; thanks; I think I might've been responsible for this bug :(