Revert "Merge pull request #2390 from phptek/2389"

This reverts commit 58da57dd1b, reversing
changes made to 8864256601.
This commit is contained in:
Simon Welsh 2013-09-13 08:22:32 +12:00
parent 92c9febb99
commit 6df6cb719d

View File

@ -231,11 +231,6 @@ class GridFieldAddExistingAutocompleter
$json = array();
foreach($results as $result) {
// Prevent a circular reference and associated error in CMS/admin
$hideFromSearch = ($gridField->getForm()->getRecord() && ($result->ID == $gridField->getForm()->getRecord()->ID));
if($hideFromSearch) {
continue;
}
$json[$result->ID] = SSViewer::fromString($this->resultsFormat)->process($result);
}
return Convert::array2json($json);