mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #11287 from johannesx75/fix-remove-write-from-SearchableDropdownTrait
FIX remove write from SearchableDropdownTrait
This commit is contained in:
commit
e677b12202
@ -397,7 +397,6 @@ trait SearchableDropdownTrait
|
|||||||
$record->$classNameField = $ids ? $record->ClassName : '';
|
$record->$classNameField = $ids ? $record->ClassName : '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$record->write();
|
|
||||||
} else {
|
} else {
|
||||||
// has_many / many_many field
|
// has_many / many_many field
|
||||||
if (!method_exists($record, 'hasMethod')) {
|
if (!method_exists($record, 'hasMethod')) {
|
||||||
|
Loading…
Reference in New Issue
Block a user