mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUG The "Link existing" should be disabled rather than readonly.
This commit is contained in:
parent
1fac44ab7a
commit
6ff0f3f466
@ -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