CRM-19093 adding comments
authorSamuel Vanhove <samuel@symbiotic.coop>
Fri, 14 Oct 2016 14:41:00 +0000 (10:41 -0400)
committerSamuel Vanhove <samuel@symbiotic.coop>
Fri, 14 Oct 2016 14:41:00 +0000 (10:41 -0400)
CRM/Core/I18n/Schema.php

index 2b483bde54c0702fda70bd768062678e8164c4b6..377e24d5c7c29ee8b37bdfe82f762104343aeedc 100644 (file)
@@ -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