From d56e12d2070ea81f0f082df5b30914234cdda3c1 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 30 Aug 2019 13:47:41 +0200 Subject: [PATCH] fix(async-table): update legacy call to datepicker --- frontend/src/utils/async-table/async-table.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/frontend/src/utils/async-table/async-table.js b/frontend/src/utils/async-table/async-table.js index 489789d93..b8330aa4b 100644 --- a/frontend/src/utils/async-table/async-table.js +++ b/frontend/src/utils/async-table/async-table.js @@ -240,10 +240,8 @@ export class AsyncTable { _serializeTableFilterToURL(tableFilterForm) { const url = new URL(getLocalStorageParameter('currentTableUrl') || window.location.href); - // format any date values before submission - Datepicker.destroyAllFormInputDates(tableFilterForm); - - const formData = new FormData(tableFilterForm); + // create new FormData and format any date values + const formData = Datepicker.unformatAll(this._massInputForm, new FormData(tableFilterForm)); for (var k of url.searchParams.keys()) { url.searchParams.delete(k);