mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
commit
c7cec6e48b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user