mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Handle no report key parameter
This commit is contained in:
parent
bcd67cf42b
commit
fb680606e8
@ -36,4 +36,15 @@ class GenericReportRequest extends Request
|
||||
'send_email' => 'required|bool',
|
||||
];
|
||||
}
|
||||
|
||||
public function prepareForValidation()
|
||||
{
|
||||
$input = $this->all();
|
||||
|
||||
|
||||
if(!array_key_exists('report_keys', $input))
|
||||
$input['report_keys'] = [];
|
||||
|
||||
$this->replace($input);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user