Fix scenario when creating a new BBS during user registration 'Attempt to read property exists on null'
This commit is contained in:
parent
6d9179ed37
commit
7af67de2a8
@ -58,7 +58,7 @@ class SystemRegister extends FormRequest
|
||||
|
||||
$so = $this->route('o');
|
||||
|
||||
if ((! $so->exists) && ($request->action === 'create'))
|
||||
if (((! $so) || (! $so->exists)) && ($request->action === 'create'))
|
||||
return [
|
||||
'name' => 'required|min:3',
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user