Bug 32030: (follow-up) Fix date handling - conflicts with bug 30718
Fix "Filter by expired" returns 400 when no date provided Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
135e229e4b
commit
8edf973e07
1 changed files with 2 additions and 0 deletions
|
@ -121,6 +121,8 @@ export default {
|
|||
if (this.filters.by_expired) {
|
||||
if (!this.filters.max_expiration_date)
|
||||
this.filters.max_expiration_date = new Date()
|
||||
.toISOString()
|
||||
.substring(0, 10)
|
||||
}
|
||||
$("#" + this.table_id)
|
||||
.DataTable()
|
||||
|
|
Loading…
Reference in a new issue