Skip to content

Commit 9b22805

Browse files
authored
Merge pull request #378 from abhishek-webkul/gli-807
Fix ConfigurationKPI values issue when adding a new language
2 parents 4069515 + 8773b37 commit 9b22805

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

classes/Language.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -416,9 +416,14 @@ public function loadUpdateSQL()
416416
$tables = Db::getInstance()->executeS('SHOW TABLES LIKE \''.str_replace('_', '\\_', _DB_PREFIX_).'%\_lang\' ');
417417
$langTables = array();
418418

419+
$exceptions = array(
420+
_DB_PREFIX_.'configuration_lang',
421+
_DB_PREFIX_.'configuration_kpi_lang',
422+
);
423+
419424
foreach ($tables as $table) {
420425
foreach ($table as $t) {
421-
if ($t != _DB_PREFIX_.'configuration_lang') {
426+
if (!in_array($t, $exceptions)) {
422427
$langTables[] = $t;
423428
}
424429
}

0 commit comments

Comments
 (0)