From bcca30bd55bf00b360ac1e967d58a288c39d5353 Mon Sep 17 00:00:00 2001
From: Uma <uma.s@vtiger.com>
Date: Tue, 24 Sep 2019 15:03:08 +0530
Subject: [PATCH] Correction to varibale name mismatch

---
 data/CRMEntity.php               | 1 -
 include/utils/InventoryUtils.php | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/data/CRMEntity.php b/data/CRMEntity.php
index 0cea66f72..597757337 100644
--- a/data/CRMEntity.php
+++ b/data/CRMEntity.php
@@ -1096,7 +1096,6 @@ class CRMEntity {
 	 */
 	function checkIfCustomTableExists($tablename) {
 		global $adb;
-        $table_name = Vtiger_Util_Helper::validateStringForSql($table_name);
 		$query = "select * from " . $adb->sql_escape_string($tablename);
 		$result = $this->db->pquery($query, array());
 		$testrow = $this->db->num_fields($result);
diff --git a/include/utils/InventoryUtils.php b/include/utils/InventoryUtils.php
index 1388f65b0..5280b6f48 100644
--- a/include/utils/InventoryUtils.php
+++ b/include/utils/InventoryUtils.php
@@ -972,7 +972,7 @@ function getInventorySHTaxPercent($id, $taxname)
 	global $log, $adb;
 	$log->debug("Entering into function getInventorySHTaxPercent($id, $taxname)");
 
-    $taxName = Vtiger_Util_Helper::validateStringForSql($taxName);
+    $taxname = Vtiger_Util_Helper::validateStringForSql($taxname);
 	$res = $adb->pquery("select $taxname from vtiger_inventoryshippingrel where id= ?", array($id));
 	$taxpercentage = $adb->query_result($res,0,$taxname);
 
-- 
GitLab