From 441a3bfc22d7618bf65e7cc6013097bf67eeab93 Mon Sep 17 00:00:00 2001
From: Uma <uma.s@vtiger.com>
Date: Mon, 23 Mar 2020 13:51:36 +0530
Subject: [PATCH] Fixes #929 Calendar action buttons shuffled to consistent
 order

---
 modules/Vtiger/models/Module.php | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/modules/Vtiger/models/Module.php b/modules/Vtiger/models/Module.php
index 516803eab..ec888f683 100644
--- a/modules/Vtiger/models/Module.php
+++ b/modules/Vtiger/models/Module.php
@@ -1276,14 +1276,14 @@ class Vtiger_Module_Model extends Vtiger_Module {
 			if($moduleName === "Calendar"){
 				$basicLinks[] = array(
 					'linktype' => 'BASIC',
-					'linklabel' => 'LBL_ADD_TASK',
-					'linkurl' => $this->getCreateTaskRecordUrl(),
+					'linklabel' => 'LBL_ADD_EVENT',
+					'linkurl' => $this->getCreateEventRecordUrl(),
 					'linkicon' => 'fa-plus'
 				);
-				$basicLinks[] = array(
+                $basicLinks[] = array(
 					'linktype' => 'BASIC',
-					'linklabel' => 'LBL_ADD_EVENT',
-					'linkurl' => $this->getCreateEventRecordUrl(),
+					'linklabel' => 'LBL_ADD_TASK',
+					'linkurl' => $this->getCreateTaskRecordUrl(),
 					'linkicon' => 'fa-plus'
 				);
 			} else {
-- 
GitLab