mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Improve validation layer for reports
This commit is contained in:
parent
dbdda5dd03
commit
667c1848dc
@ -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…
x
Reference in New Issue
Block a user