Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
views.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
12 Sep 2015 at 14:33 UTC
Updated:
25 Sep 2015 at 09:05 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
alexpottNote that filter and sort criteria display the label escaped as expected
Comment #3
geertvd commentedComment #4
geertvd commentedI think this is the right fix, working on adding test coverage.
Comment #5
alexpottI don't think this is the right fix. We need to fix it to allow auto-escape to do its thing.
Comment #6
geertvd commentedSo the problem is that the field label is added to the handler option list with a !placeholder here:
Filter and sort handler labels are being escaped because:
Comment #7
geertvd commentedFailing test
Comment #8
alexpottI think this issue will be fixed by #2557113: Make t() return a TranslationWrapper object to remove reliance on a static, unpredictable safe list
Comment #9
geertvd commentedJust applied the latest patch from #2557113: Make t() return a TranslationWrapper object to remove reliance on a static, unpredictable safe list.
That in combination with changing
$this->t('!group: !field', array('!group' => $option['group'], '!field' => $option['title']))to use @placeholders fixes the problem.So I guess a combination of #2557113: Make t() return a TranslationWrapper object to remove reliance on a static, unpredictable safe list and one of the !placeholder issues will fix it.
Comment #12
geertvd commentedComment #13
dawehnerNope, this is certainly not the right fix. We want to fix core/modules/views_ui/src/Form/Ajax/AddHandler.php:142 instead
Comment #14
geertvd commentedJust checked, I can't reproduce this anymore since both issues mentioned in #9 got in.