SF Bug #3531956 - Search / Show Attributes must be lowercase

This commit is contained in:
Deon George 2012-09-05 22:44:46 +10:00
parent f1ed59a35e
commit bbedf18b7e
2 changed files with 5 additions and 3 deletions

View File

@ -280,6 +280,8 @@ class QueryRender extends PageRender {
# Iterate over each attribute for this entry
foreach (explode(',',$ado) as $attr) {
$attr = strtolower($attr);
# Ignore DN, we've already displayed it.
if ($attr == 'dn')
continue;
@ -459,7 +461,7 @@ class QueryRender extends PageRender {
$results = array();
foreach (explode(',',$this->template->getAttrDisplayOrder()) as $attr)
$results[$attr] = $attribute_factory->newAttribute($attr,array('values'=>array()),$this->getServerID());
$results[strtolower($attr)] = $attribute_factory->newAttribute($attr,array('values'=>array()),$this->getServerID());
return $results;
}