mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 21:24:13 -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);
|
$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);
|
||||||
|
|
Loading…
Reference in a new issue