Commit 9d507c74 authored by Korko's avatar Korko
Browse files

Fix tests

parent 53b1c1f3
......@@ -46,7 +46,7 @@ class RandomFormRequest extends Request
$rules += [
'email.'.$key => 'required_without:phone.'.$key.'|email',
'phone.'.$key => 'required_without:email.'.$key.'|numeric|regex:#0[67]\d{8}#',
'partner.'.$key => ($this->request->get('partner')[$key] !== '-1') ? 'sometimes|numeric|fieldinkeys:name,'.$key : '',
'partner.'.$key => (isset($this->request->get('partner')[$key]) && $this->request->get('partner')[$key] !== '-1') ? 'sometimes|numeric|fieldinkeys:name,'.$key : '',
];
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment