mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-02 08:21:09 -08:00
Fixed - name should always be required in custom fields
This commit is contained in:
parent
3a82fbe714
commit
579334b5fc
|
@ -37,6 +37,18 @@ class CustomFieldRequest extends FormRequest
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Save all fields
|
||||||
|
case 'PUT':
|
||||||
|
$rules['name'] = "required";
|
||||||
|
break;
|
||||||
|
|
||||||
|
// Save only what's passed
|
||||||
|
case 'PATCH':
|
||||||
|
{
|
||||||
|
$rules['name'] = "required";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
default:break;
|
default:break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue