Merge pull request #7502 from open-sausages/pulls/4.0/i-converted-an-apple-to-an-orange

Fix switch to using the Convert class for decoding
This commit is contained in:
Damian Mooyman 2017-10-24 10:25:53 +13:00 committed by GitHub
commit 13afd6f0d5

View File

@ -254,7 +254,7 @@ class GridFieldAddExistingAutocompleter implements GridField_HTMLProvider, GridF
SSViewer::config()->update('source_file_comments', false); SSViewer::config()->update('source_file_comments', false);
$viewer = SSViewer::fromString($this->resultsFormat); $viewer = SSViewer::fromString($this->resultsFormat);
foreach ($results as $result) { foreach ($results as $result) {
$title = html_entity_decode($viewer->process($result)); $title = Convert::html2raw($viewer->process($result));
$json[] = array( $json[] = array(
'label' => $title, 'label' => $title,
'value' => $title, 'value' => $title,