Add comment
This commit is contained in:
parent
68749e7e87
commit
d0a351a132
1 changed files with 1 additions and 0 deletions
|
@ -59,6 +59,7 @@ class CustomFieldSetDefaultValuesForModel extends Component
|
|||
{
|
||||
$defaultValue = $field->defaultValue($this->model_id);
|
||||
|
||||
// if we have old input for this field, use that instead
|
||||
if (old('default_values.' . $field->id)) {
|
||||
// @todo: need to handle old input being null on purpose...
|
||||
$defaultValue = old('default_values.' . $field->id);
|
||||
|
|
Loading…
Add table
Reference in a new issue