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.
Special characters in node titles are not rendered correctly when displayed in select box. For example having a node with title MY TITLE IS "ABC" will be displayed in select box as MY TITLE IS "ABC"
Comment | File | Size | Author |
---|---|---|---|
#4 | special_chars_display_select_fields-2400689-4.patch | 2.27 KB | esolitos |
|
Comments
Comment #1
jygastaud CreditAttribution: jygastaud commentedThat is not an issue caused by Entityconnect.
It happend in Entity Reference module in class "EntityReference_SelectionHandler_Generic" due to check_plain in label line 173.
$options[$bundle][$entity_id] = check_plain($this->getLabel($entity));
Remove check_plain() should be safe because form_select_options() already does a check_plain.
Attached patch apply the above suggestion.
Comment #3
mbaev CreditAttribution: mbaev commentedPlease, just apply the patch and submit new version. It's simply...
Test failed because need to delete same functions from tests: entityreference.handlers.test
Comment #4
esolitosI re applied the patch to HEAD and fixed the tests as suggested by mbaev in #3
Comment #5
esolitosForgot to trigger the test bot.
Comment #6
mbaev CreditAttribution: mbaev commentedThank you, @esolitos!