Skip to content
Snippets Groups Projects
Commit 6e557bb3 authored by lcdweb's avatar lcdweb
Browse files

CRM-14179 fix word replacement existing rows count

parent 384f991e
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.
Finish editing this message first!
Please register or to comment