projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28d90af
)
CRM-19093 adding comments
author
Samuel Vanhove
<samuel@symbiotic.coop>
Fri, 14 Oct 2016 14:41:00 +0000
(10:41 -0400)
committer
Samuel Vanhove
<samuel@symbiotic.coop>
Fri, 14 Oct 2016 14:41:00 +0000
(10:41 -0400)
CRM/Core/I18n/Schema.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Core/I18n/Schema.php
b/CRM/Core/I18n/Schema.php
index 2b483bde54c0702fda70bd768062678e8164c4b6..377e24d5c7c29ee8b37bdfe82f762104343aeedc 100644
(file)
--- 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