Created
October 12, 2015 07:14
-
-
Save piyuesh23/71190bc0e5a910636f35 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -uprb a/entityreference.module b/entityreference.module | |
--- entityreference.module 2012-11-18 14:54:22.000000000 +0530 | |
+++ entityreference.module 2015-01-14 12:42:16.000000000 +0530 | |
@@ -773,6 +773,11 @@ function entityreference_options_list($f | |
$return = array(); | |
foreach ($options as $bundle => $entity_ids) { | |
$bundle_label = check_plain($entity_info['bundles'][$bundle]['label']); | |
+ // We need to return unsanitized labels but getReferencableEntities() | |
+ // has already encoded them, so we decode them again. | |
+ foreach ($entity_ids as $id => $label) { | |
+ $entity_ids[$id] = decode_entities($label); | |
+ } | |
$return[$bundle_label] = $entity_ids; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment