From 7f7d306ec9b92b761164fa93eb05e2ec66d9d1a1 Mon Sep 17 00:00:00 2001 From: Samuel Vanhove Date: Fri, 14 Oct 2016 10:41:00 -0400 Subject: [PATCH] CRM-19093 adding comments --- CRM/Core/I18n/Schema.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CRM/Core/I18n/Schema.php b/CRM/Core/I18n/Schema.php index 2b483bde54..377e24d5c7 100644 --- a/CRM/Core/I18n/Schema.php +++ b/CRM/Core/I18n/Schema.php @@ -361,6 +361,9 @@ class CRM_Core_I18n_Schema { global $dbLocale; $tables = self::schemaStructureTables(); foreach ($tables as $table) { + // CRM-19093 + // should match the civicrm table name such as: civicrm_event + // but must not match the table name if it's a substring of another table: civicrm_events_in_cart $query = preg_replace("/([^'\"])({$table})([^a-z_'\"])/", "\\1\\2{$dbLocale}\\3", $query); } // uncomment the below to rewrite the civicrm_value_* queries -- 2.25.1