N°1429: Dashlet header statistics fix corresponding search criteria

SVN:trunk[5805]
This commit is contained in:
Eric Espié
2018-05-22 14:57:05 +00:00
parent bef8fd566f
commit a4459901e8
2 changed files with 2 additions and 7 deletions

View File

@@ -1712,12 +1712,7 @@ class DashletHeaderDynamic extends Dashlet
if (isset($sClass) && $this->oModelReflection->IsValidAttCode($sClass, $this->aProperties['group_by']))
{
$aValues = $this->oModelReflection->GetAllowedValues_att($sClass, $this->aProperties['group_by']);
$aNewValues = array();
foreach($aValues as $sKey => $sValue)
{
$aNewValues[$sKey] = html_entity_decode($sValue, ENT_QUOTES);
}
$oField->SetAllowedValues($aNewValues);
$oField->SetAllowedValues($aValues);
}
else
{

View File

@@ -3835,7 +3835,7 @@ class AttributeEnum extends AttributeString
$aLocalizedValues = array();
foreach ($aRawValues as $sKey => $sValue)
{
$aLocalizedValues[$sKey] = Str::pure2html($this->GetValueLabel($sKey));
$aLocalizedValues[$sKey] = $this->GetValueLabel($sKey);
}
return $aLocalizedValues;
}