silverstripe / silverstripe-framework

Silverstripe Framework, the MVC framework that powers Silverstripe CMS
https://www.silverstripe.org
BSD 3-Clause "New" or "Revised" License
721 stars 821 forks source link

TODO: FormField::getSchemaDataType - Throw exception if value is missing #11021

Closed sabina-talipova closed 11 months ago

sabina-talipova commented 11 months ago

Description

FormField::getSchemaDataType - Throw exception if value is missing, once a form field schema is mandatory across the CMS

See: https://github.com/silverstripe/silverstripe-framework/blob/cf78a9d785b9959a92dfb52c2a456bea80a4c567/src/Forms/FormField.php#L1450

GuySartorelli commented 11 months ago

We can do that if/when we ever make field schema mandatory - but there's no sense having an issue hanging around since we aren't even sure we'll ever make it mandatory at this stage.