Merge pull request #9320 from open-sausages/pulls/4/disabled-link-to-existing-gridfield-button

BUG The "Link existing" should be disabled rather than readonly
This commit is contained in:
Andre Kiste 2020-01-24 15:59:34 +13:00 committed by GitHub
commit c7cec6e48b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);