From 99d431c151a7d35a8d3661bb7059240365d8cd6e Mon Sep 17 00:00:00 2001
From: Uma <uma.s@vtiger.com>
Date: Fri, 29 Nov 2019 15:17:20 +0530
Subject: [PATCH] Fixes #1187 Custom module restore of records

---
 modules/Vtiger/CRMEntity.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/Vtiger/CRMEntity.php b/modules/Vtiger/CRMEntity.php
index 78fe1b62e..f6e02223f 100644
--- a/modules/Vtiger/CRMEntity.php
+++ b/modules/Vtiger/CRMEntity.php
@@ -27,7 +27,7 @@ class Vtiger_CRMEntity extends CRMEntity {
 	function __construct() {
 		global $log;
 		$this->column_fields = getColumnFields(get_class($this));
-		$this->db = new PearDatabase();
+		$this->db = PearDatabase::getInstance();
 		$this->log = $log;
 	}
 
-- 
GitLab