Fix scenario when creating a new BBS during user registration 'Attempt to read property exists on null'

This commit is contained in:
Deon George 2023-12-15 10:37:18 +11:00
parent 6d9179ed37
commit 7af67de2a8

View File

@ -58,7 +58,7 @@ class SystemRegister extends FormRequest
$so = $this->route('o'); $so = $this->route('o');
if ((! $so->exists) && ($request->action === 'create')) if (((! $so) || (! $so->exists)) && ($request->action === 'create'))
return [ return [
'name' => 'required|min:3', 'name' => 'required|min:3',
]; ];