Add comment

This commit is contained in:
Marcus Moore 2024-08-22 12:59:03 -07:00
parent 68749e7e87
commit d0a351a132
No known key found for this signature in database

View file

@ -59,6 +59,7 @@ class CustomFieldSetDefaultValuesForModel extends Component
{ {
$defaultValue = $field->defaultValue($this->model_id); $defaultValue = $field->defaultValue($this->model_id);
// if we have old input for this field, use that instead
if (old('default_values.' . $field->id)) { if (old('default_values.' . $field->id)) {
// @todo: need to handle old input being null on purpose... // @todo: need to handle old input being null on purpose...
$defaultValue = old('default_values.' . $field->id); $defaultValue = old('default_values.' . $field->id);