diff --git a/layouts/v7/modules/Vtiger/resources/Detail.js b/layouts/v7/modules/Vtiger/resources/Detail.js
index 9545d46c55dc6b57f37299b46c75b5d4cd5f36e9..b8dc71d68a8c4d4191f9cab33cc493d3cfb477de 100644
--- a/layouts/v7/modules/Vtiger/resources/Detail.js
+++ b/layouts/v7/modules/Vtiger/resources/Detail.js
@@ -2105,72 +2105,46 @@ Vtiger.Class("Vtiger_Detail_Js",{
 	},
 
 	toggleRollupComments : function (e) {
-			e.stopPropagation();
-			e.preventDefault();
-			var self = this;
-			var currentTarget = jQuery(e.currentTarget);
-			var moduleName = currentTarget.attr('module');
-			var recordId = currentTarget.attr('record');
-			var rollupId = currentTarget.attr('rollupid');
-			var rollupstatus = currentTarget.attr('rollup-status');
-			var viewtype = currentTarget.data('view');
-			var startindex = parseInt(currentTarget.attr('startindex'));
-			var contents, url, params;
-
-			if(rollupstatus == 0) {
-				if(viewtype == 'relatedlist') {
-					url = 'index.php?module=Vtiger&view=ModCommentsDetailAjax&parent='+
-							moduleName+'&parentId='+recordId+'&rollupid='+rollupId+'&rollup_status='+rollupstatus+
-							'&startindex='+startindex;
-					contents = jQuery('.details');
-				}else {
-					url = 'index.php?module='+moduleName+'&relatedModule=ModComments&view=Detail&record='+
-							recordId+'&mode=showRecentComments'+'&rollupid='+rollupId
-							+'&rollup_status=1&parent='+moduleName+'&rollup-toggle=1&limit=5';
-					contents = jQuery('div[data-name="ModComments"] div.widget_contents');
-				}
-
-				params = {
-					'type' : 'GET',
-					'url' : url
-				};
-
-				app.request.get(params).then(function(err, data){
-					app.helper.hideProgress();
-					contents.html(data);
-					self.registerRollupCommentsSwitchEvent();
-					jQuery('#rollupcomments').bootstrapSwitch('state', true, true);
-				});
-			}else {
-				if(viewtype == 'relatedlist') {
-					url = 'index.php?module=Vtiger&view=ModCommentsDetailAjax&parent='+
-					  moduleName+'&parentId='+recordId+'&rollupid='+rollupId+'&rollup_status=0&mode=saveRollupSettings';
-					params = {
-						'type' : 'GET',
-						'url' : url
-					};
-					app.request.get(params).then(function(err, data){
-                        currentTarget.attr('rollup-status', 0);
-//                        Vtiger_Index_Js.getInstance().registerMentionListener(jQuery('.widgetContainer_comments').find('.mention_listener'));
-                        jQuery('div.related-tabs li[data-label-key="ModComments"]').trigger('click');
-                    });
-				}else {
-					url = 'index.php?module='+moduleName+'&relatedModule=ModComments&view=Detail&record='+
-							recordId+'&mode=showRecentComments'+'&rollupid='+rollupId
-							+'&rollup_status=0&parent='+moduleName+'&rollup-toggle=1&limit=5';
-					contents = jQuery('div[data-name="ModComments"] div.widget_contents');
-					params = {
-						'type' : 'GET',
-						'url' : url
-					};
-					app.request.get(params).then(function(err, data){
-						app.helper.hideProgress();
-						contents.html(data);
-						self.registerRollupCommentsSwitchEvent();
-						jQuery('#rollupcomments').bootstrapSwitch('state', false, true);
-					});
-				}
-			}
+		e.stopPropagation();
+		e.preventDefault();
+		var self = this;
+		var currentTarget = jQuery(e.currentTarget);
+		var moduleName = currentTarget.attr('module');
+		var recordId = currentTarget.attr('record');
+		var rollupId = currentTarget.attr('rollupid');
+		var rollupstatus = currentTarget.attr('rollup-status');
+		var viewtype = currentTarget.data('view');
+		var startindex = parseInt(currentTarget.attr('startindex'));
+		var contents, url, params;
+
+		if(viewtype == 'relatedlist') {
+			url = 'index.php?module=Vtiger&view=ModCommentsDetailAjax&parent='+moduleName+'&parentId='+recordId+
+								'&rollupid='+rollupId+'&rollup_status='+rollupstatus+'&mode=saveRollupSettings';
+			params = {
+				'type' : 'GET',
+				'url' : url
+			};
+			app.request.get(params).then(function(err, data){
+				currentTarget.attr('rollup-status', !rollupstatus);
+				jQuery('div.related-tabs li[data-label-key="ModComments"]').trigger('click');
+			});
+		} else {
+			url = 'index.php?module='+moduleName+'&relatedModule=ModComments&view=Detail&record='+
+					recordId+'&mode=showRecentComments'+'&rollupid='+rollupId
+					+'&rollup_status=0&parent='+moduleName+'&rollup-toggle=1&limit=5';
+			contents = jQuery('div[data-name="ModComments"] div.widget_contents');
+			params = {
+				'type' : 'GET',
+				'url' : url
+			};
+			app.request.get(params).then(function(err, data){
+				app.helper.hideProgress();
+				contents.html(data);
+				vtUtils.enableTooltips();
+				self.registerRollupCommentsSwitchEvent();
+				jQuery('#rollupcomments').bootstrapSwitch('state', !rollupstatus, true);
+			});
+		}
 	},
 
 	registerScrollForRollupEvents : function() {
diff --git a/layouts/v7/modules/Vtiger/resources/validation.js b/layouts/v7/modules/Vtiger/resources/validation.js
index 97e3ef2cb1881e5bd0263445242f99e293825db0..c2e44ee3716797662277b153455ac9af3e4b67de 100644
--- a/layouts/v7/modules/Vtiger/resources/validation.js
+++ b/layouts/v7/modules/Vtiger/resources/validation.js
@@ -184,7 +184,8 @@ jQuery.validator.addMethod("greaterThanDependentField", function(value, element,
 		if(typeof sourceFieldInfo == 'undefined' || typeof depFieldInfo == 'undefined')
 			return result;
 
-		if(sourceFieldInfo.type !== 'date' || depFieldInfo.type !== 'date') {
+		if((sourceFieldInfo.type !== 'date' || depFieldInfo.type !== 'date') 
+				&& (sourceFieldInfo.type !== 'datetime' || depFieldInfo.type !== 'datetime')) { //start_date, end_date fields data type is datetime.
 			console.log('greaterThanDependentField() validation method should be used for date fields only');
 			return result;
 		}