From a9b02257abb6f181e017b1d88674f4a6e431b573 Mon Sep 17 00:00:00 2001
From: Uma <uma.s@vtiger.com>
Date: Mon, 30 Sep 2019 16:15:12 +0530
Subject: [PATCH] Fixes:#1058::Uma::Calendar drag and drop bug fixed

---
 layouts/v7/skins/vtiger/style.less        | 3 +++
 modules/Calendar/actions/DragDropAjax.php | 6 ++++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/layouts/v7/skins/vtiger/style.less b/layouts/v7/skins/vtiger/style.less
index a30175e71..99b1a55ac 100644
--- a/layouts/v7/skins/vtiger/style.less
+++ b/layouts/v7/skins/vtiger/style.less
@@ -8459,3 +8459,6 @@ input:focus:-ms-input-placeholder { color:transparent; } /* IE 10+ */
 .navbar-fixed-top {
     z-index: 1095 !important;
 }
+body .fc {
+overflow:auto;
+}
diff --git a/modules/Calendar/actions/DragDropAjax.php b/modules/Calendar/actions/DragDropAjax.php
index 546572090..b56b56e41 100755
--- a/modules/Calendar/actions/DragDropAjax.php
+++ b/modules/Calendar/actions/DragDropAjax.php
@@ -16,6 +16,8 @@ class Calendar_DragDropAjax_Action extends Calendar_SaveAjax_Action {
 	}
 
 	public function process(Vtiger_Request $request) {
+        ini_set('error_reporting', '6135');
+        ini_set('display_errors', 'on');
 		$mode = $request->getMode();
 		if(!empty($mode) && $this->isMethodExposed($mode)) {
 			$this->invokeExposedMethod($mode, $request);
@@ -251,7 +253,7 @@ class Calendar_DragDropAjax_Action extends Calendar_SaveAjax_Action {
 					}
 					$result['recurringRecords'] = true;
 				} else {
-					$oldStartDateTime = '';
+                    $oldStartDateTime = array();
 					$oldStartDateTime[] = $record->get('date_start');
 					$oldStartDateTime[] = $record->get('time_start');
 					$oldStartDateTime = implode(' ', $oldStartDateTime);
@@ -260,7 +262,7 @@ class Calendar_DragDropAjax_Action extends Calendar_SaveAjax_Action {
 					$record->set('date_start',$parts[0]);
 					$record->set('time_start',$parts[1]);
 
-					$oldEndDateTime = '';
+					$oldEndDateTime = array();
 					$oldEndDateTime[] = $record->get('due_date');
 					$oldEndDateTime[] = $record->get('time_end');
 					$oldEndDateTime = implode(' ',$oldEndDateTime);
-- 
GitLab