BUG The "Link existing" should be disabled rather than readonly.

This commit is contained in:
Maxime Rainville 2019-11-19 11:38:55 +13:00
parent 1fac44ab7a
commit 6ff0f3f466

View File

@ -136,7 +136,7 @@ class GridFieldAddExistingAutocompleter implements GridField_HTMLProvider, GridF
// If an object is not found, disable the action // If an object is not found, disable the action
if (!is_int($gridField->State->GridFieldAddRelation(null))) { if (!is_int($gridField->State->GridFieldAddRelation(null))) {
$addAction->setReadonly(true); $addAction->setDisabled(true);
} }
$forTemplate->Fields->push($searchField); $forTemplate->Fields->push($searchField);