mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-02 22:28: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();
|
$json = array();
|
||||||
foreach($results as $result) {
|
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);
|
$json[$result->ID] = SSViewer::fromString($this->resultsFormat)->process($result);
|
||||||
}
|
}
|
||||||
return Convert::array2json($json);
|
return Convert::array2json($json);
|
||||||
|
Loading…
Reference in New Issue
Block a user