Werk #22128 · Aug 17, 26
Fix crash on User messages page with older messages
Opening User messages could fail with a crash report showing
TypeError: '<' not supported between instances of 'NoneType' and 'bool',
leaving the page empty.
This happened as soon as one of the stored messages predated the distinction between normal and security messages. Such a message carries no security flag, and sorting it together with newer messages that do carry one failed.
Messages without a security flag are now sorted as normal messages, and the page lists all messages again.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- Multisite
- Versions:
- 3.0.0b1Not yet releasedAll Editions
- 2.5.0p12All Editions
- 2.4.0p36All Editions