mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Revert "Merge pull request #2390 from phptek/2389"
This reverts commit58da57dd1b
, reversing changes made to8864256601
.
This commit is contained in:
parent
92c9febb99
commit
6df6cb719d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user