Skip to content
Snippets Groups Projects
Commit afdf6e46 authored by Tim Otten's avatar Tim Otten
Browse files

Merge pull request #2484 from lcdservices/CRM-14179

CRM-14179 fix word replacement existing rows count
parents 384f991e 6e557bb3
No related branches found
No related tags found
No related merge requests found
......@@ -116,7 +116,15 @@ class CRM_Admin_Form_WordReplacements extends CRM_Core_Form {
public function buildQuickForm() {
$config = CRM_Core_Config::singleton();
$values = $config->localeCustomStrings[$config->lcMessages];
$instances = (count($values, COUNT_RECURSIVE) - 6);
//CRM-14179
$instances = 0;
foreach ( $values as $valMatchType ) {
foreach ( $valMatchType as $valPairs ) {
$instances += count($valPairs);
}
}
if ($instances > 10) {
$this->_numStrings = $instances;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment