CRM-15956 - Reports / Smarty: section headers should be case-insensitive
authorAndrew Hunt <andrew@aghstrategies.com>
Wed, 11 Feb 2015 23:04:07 +0000 (18:04 -0500)
committerAndrew Hunt <andrew@aghstrategies.com>
Wed, 11 Feb 2015 23:04:07 +0000 (18:04 -0500)
because MySQL ORDER BY is

CRM/Core/Smarty/plugins/function.isValueChange.php

index b2f822e0f21ae9cd2820073b68dbffedb6d54544..2297dea5a03860ef18db071fa0236b9b81864c7e 100644 (file)
@@ -62,7 +62,7 @@ function smarty_function_isValueChange($params, &$smarty) {
 
   $is_changed = FALSE;
 
-  if (!array_key_exists($params['key'], $values) || $params['value'] != $values[$params['key']]) {
+  if (!array_key_exists($params['key'], $values) || strcasecmp($params['value'], $values[$params['key']]) !== 0) {
     // if we have a new value
 
     $is_changed = TRUE;