mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Add comment
This commit is contained in:
parent
68749e7e87
commit
d0a351a132
|
@ -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…
Reference in a new issue