Merge pull request #2650 from Zauberfisch/GridFieldAddExistingAutocompleter

Implove GridFieldAddExistingAutocompleter->doSearch() html output
This commit is contained in:
Ingo Schommer 2013-11-21 04:42:28 -08:00
commit c6cf023b42

View File

@ -229,9 +229,12 @@ class GridFieldAddExistingAutocompleter
->limit($this->getResultsLimit());
$json = array();
$originalSourceFileComments = Config::inst()->get('SSViewer', 'source_file_comments');
Config::inst()->update('SSViewer', 'source_file_comments', false);
foreach($results as $result) {
$json[$result->ID] = SSViewer::fromString($this->resultsFormat)->process($result);
$json[$result->ID] = html_entity_decode(SSViewer::fromString($this->resultsFormat)->process($result));
}
Config::inst()->update('SSViewer', 'source_file_comments', $originalSourceFileComments);
return Convert::array2json($json);
}