Allow updating incidents when the incident has no associated user

This commit is contained in:
Nico Stapelbroek
2018-06-18 07:12:34 +02:00
committed by Nico Stapelbroek
parent 3e3763722b
commit 253d9ec445
2 changed files with 18 additions and 1 deletions

View File

@@ -120,7 +120,7 @@ class Incident extends Model implements HasPresenter
* @var string[]
*/
public $rules = [
'user_id' => 'required|int',
'user_id' => 'nullable|int',
'component_id' => 'nullable|int',
'name' => 'required|string',
'status' => 'required|int',