From c160420478964185ba18cc45e84221d4b5cfc61d Mon Sep 17 00:00:00 2001
From: prasad <prasad@vtiger.com>
Date: Wed, 21 Oct 2015 10:45:27 +0530
Subject: [PATCH] Handle UTF-8 label during migration from 5.4.0 to 6.0.0

---
 modules/Migration/schema/540_to_600RC.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/Migration/schema/540_to_600RC.php b/modules/Migration/schema/540_to_600RC.php
index 2526c686f..3aeac82e2 100644
--- a/modules/Migration/schema/540_to_600RC.php
+++ b/modules/Migration/schema/540_to_600RC.php
@@ -818,7 +818,7 @@ do {
 		$labelInfo = getEntityName($row['setype'], array(intval($row['crmid'])), true);
 
 		if ($labelInfo) {
-			$label = $labelInfo[$row['crmid']];
+			$label = decode_html($labelInfo[$row['crmid']]);
 			Migration_Index_View::ExecuteQuery('UPDATE vtiger_crmentity SET label=? WHERE crmid=? AND setype=?',
 						array($label, $row['crmid'], $row['setype']));
 		}
@@ -2482,4 +2482,4 @@ Migration_Index_View::ExecuteQuery("CREATE TABLE IF NOT EXISTS vtiger_faqcf (
                                 faqid int(19), 
                                 PRIMARY KEY (faqid), 
                                 CONSTRAINT fk_1_vtiger_faqcf FOREIGN KEY (faqid) REFERENCES vtiger_faq(id) ON DELETE CASCADE 
-                ) ENGINE=InnoDB DEFAULT CHARSET=utf8", array()); 
\ No newline at end of file
+                ) ENGINE=InnoDB DEFAULT CHARSET=utf8", array()); 
-- 
GitLab