Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Blocks #2560751: Remove all usages SafeMarkup::checkPlain() from Views titleQuery()
Problem/Motivation
Can't add a contextual filter for a user's roles.
Proposed resolution
Fix and text code
Remaining tasks
Do it
Review
Commit
User interface changes
None
API changes
None
Data model changes
None
Comment | File | Size | Author |
---|---|---|---|
#3 | 2560897.3.patch | 9.43 KB | alexpott |
#3 | 2560897.3.test-only.patch | 7.19 KB | alexpott |
#2 | 2560897.2.patch | 2.24 KB | alexpott |
Comments
Comment #2
alexpottComment #3
alexpottAdded a test. The test only patch is the interdiff.
Comment #4
dawehnerI'm curious ... why does the HandlerAllTest.php not find that problem?
Comment #5
lauriiiThe patch works by a manual test and the fix seems to be correct. Anyway it seems like the HandlerAllTest doesn't test RolesRid at all and that is why it didn't fail. Maybe we should figure out why it's so?
Comment #7
alexpott@dawehner because it never tests user__roles - it is not a base table...
Comment #8
lauriiiComment #9
dawehnerTest looks good for me, the follow up is in #2560949: Expland HandlerAllTest to find broken stuff
Comment #10
catchFixing on commit: 'a user'.
Committed/pushed to 8.0.x, thanks!