Merge pull request #11287 from johannesx75/fix-remove-write-from-SearchableDropdownTrait

FIX remove write from SearchableDropdownTrait
This commit is contained in:
Guy Sartorelli 2024-06-26 13:09:32 +12:00 committed by GitHub
commit e677b12202
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -397,7 +397,6 @@ trait SearchableDropdownTrait
$record->$classNameField = $ids ? $record->ClassName : '';
}
}
$record->write();
} else {
// has_many / many_many field
if (!method_exists($record, 'hasMethod')) {