From 5a1ce399f6ecf7813d7302e9c612962b4afa1e0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 26 Apr 2022 14:26:51 +0200 Subject: [PATCH] fix creation of evaluation in js --- .../Resources/public/vuejs/AccompanyingCourseWorkEdit/store.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourseWorkEdit/store.js b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourseWorkEdit/store.js index 502704716..d5437b0a7 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourseWorkEdit/store.js +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourseWorkEdit/store.js @@ -69,7 +69,6 @@ const store = createStore({ return []; }, buildPayload(state) { - console.log('end date', state.endDate); return { type: 'accompanying_period_work', id: state.work.id, @@ -245,7 +244,7 @@ const store = createStore({ type: "accompanying_period_work_evaluation", key: state.evaluationsPicked.length + 1, evaluation: evaluation, - startDate: new Date(), + startDate: dateToISO(new Date()), endDate: null, maxDate: null, warningInterval: null,