From c9652aae0522baab41ebe72951b53e540167d975 Mon Sep 17 00:00:00 2001
From: satish <satish.dvnk@vtiger.com>
Date: Tue, 9 May 2017 14:22:22 +0530
Subject: [PATCH] Removed unnecessary params in query

---
 modules/Migration/schema/660_to_700.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/Migration/schema/660_to_700.php b/modules/Migration/schema/660_to_700.php
index ede1d6146..b3bc9a13a 100644
--- a/modules/Migration/schema/660_to_700.php
+++ b/modules/Migration/schema/660_to_700.php
@@ -673,7 +673,7 @@ if(defined('VTIGER_UPGRADE')) {
 				continue;
 			}
 			$blockQuery = 'SELECT blockid FROM vtiger_blocks WHERE tabid=? ORDER BY sequence LIMIT 1';
-			$result = $db->pquery($blockQuery, array($moduleInstance->id, 1));
+			$result = $db->pquery($blockQuery, array($moduleInstance->id));
 			$block = $db->query_result($result, 0, 'blockid');
 			if ($block) {
 				$blockInstance = Vtiger_Block::getInstance($block, $moduleInstance);
@@ -1253,7 +1253,7 @@ if(defined('VTIGER_UPGRADE')) {
 				continue;
 			}
 			$blockQuery = 'SELECT blocklabel FROM vtiger_blocks WHERE tabid=? ORDER BY sequence LIMIT 1';
-			$result = $db->pquery($blockQuery, array($moduleInstance->id, 1));
+			$result = $db->pquery($blockQuery, array($moduleInstance->id));
 			$block = $db->query_result($result, 0, 'blocklabel');
 			if ($block) {
 				$blockInstance = Vtiger_Block::getInstance($block, $moduleInstance);
@@ -1291,7 +1291,7 @@ if(defined('VTIGER_UPGRADE')) {
 			$tableName = $focus->table_name;
 
 			$blockQuery = 'SELECT blocklabel FROM vtiger_blocks WHERE tabid=? ORDER BY sequence LIMIT 1';
-			$result = $db->pquery($blockQuery, array($moduleInstance->id, 1));
+			$result = $db->pquery($blockQuery, array($moduleInstance->id));
 			$block = $db->query_result($result, 0, 'blocklabel');
 			if ($block) {
 				$blockInstance = Vtiger_Block::getInstance($block, $moduleInstance);
-- 
GitLab