From 4553b4c3bea3506b098dbdcd56cbbff27c4de68b Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 4 Apr 2016 16:03:59 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20drag=20and=20drop=20across=20some=20month?= =?UTF-8?q?s=20could=20change=20event=20to=20the=20wrong=20(=C2=B1=201)=20?= =?UTF-8?q?month?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- calendar/js/et2_widget_timegrid.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/calendar/js/et2_widget_timegrid.js b/calendar/js/et2_widget_timegrid.js index 1b6c18779e..8e0d049fa5 100644 --- a/calendar/js/et2_widget_timegrid.js +++ b/calendar/js/et2_widget_timegrid.js @@ -412,9 +412,9 @@ var et2_calendar_timegrid = (function(){ "use strict"; return et2_calendar_view. } if(event_widget) { - event_widget._parent.date_helper.set_year(drop_date.substring(0,4)); - event_widget._parent.date_helper.set_month(drop_date.substring(4,6)); - event_widget._parent.date_helper.set_date(drop_date.substring(6,8)); + event_widget._parent.date_helper.set_value(drop_date.substring(0,4)+'-'+drop_date.substring(4,6)+'-'+drop_date.substring(6,8)); + + // Make sure whole day events stay as whole day events by ignoring drop time if(event_data.app == 'calendar' && event_widget.options.value.whole_day) {