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
1 changed files with 1 additions and 1 deletions

View File

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