From f3b66ec2b9ab110742087f74257074f33a8475c8 Mon Sep 17 00:00:00 2001
From: Uma <uma.s@vtiger.com>
Date: Tue, 22 Oct 2019 14:19:56 +0530
Subject: [PATCH] Event record quickcreate from calendar should load list-view

---
 layouts/v7/modules/Vtiger/resources/Vtiger.js | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/layouts/v7/modules/Vtiger/resources/Vtiger.js b/layouts/v7/modules/Vtiger/resources/Vtiger.js
index 074942acf..c753be3f1 100644
--- a/layouts/v7/modules/Vtiger/resources/Vtiger.js
+++ b/layouts/v7/modules/Vtiger/resources/Vtiger.js
@@ -494,14 +494,18 @@ Vtiger.Class('Vtiger_Index_Js', {
 				params = {};
 			}
 			if (typeof params.callbackFunction === 'undefined') {
+                            console.log('params callback undefined');
 				params.callbackFunction = function(data, err) {
 					//fix for Refresh list view after Quick create
 					var parentModule=app.getModuleName();
 					var viewname=app.view();
 					if((quickCreateModuleName == parentModule) && (viewname=="List")){
-							var listinstance = app.controller();
-							listinstance.loadListViewRecords(); 
-					}
+                                            var listinstance = app.controller();
+                                            listinstance.loadListViewRecords(); 
+					}else if(quickCreateModuleName == 'Events' && parentModule == 'Calendar'  && (viewname=="List")){
+                                            var listinstance = app.controller();
+                                            listinstance.loadListViewRecords(); 
+                                        }
 				};
 			}
 			app.helper.showProgress();
-- 
GitLab