Improve validation layer for reports
This commit is contained in:
parent
dbdda5dd03
commit
667c1848dc
1 changed files with 6 additions and 0 deletions
|
|
@ -55,6 +55,12 @@ class GenericReportRequest extends Request
|
|||
$input['send_email'] = true;
|
||||
}
|
||||
|
||||
if (array_key_exists('date_range', $input) && $input['date_range'] != 'custom') {
|
||||
$input['start_date'] = null;
|
||||
$input['end_date'] = null;
|
||||
}
|
||||
|
||||
|
||||
$this->replace($input);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue