N°4538 - Dashlet Groupby on ExternalKey with special character, bad display - remove useless test

This commit is contained in:
acognet
2022-05-23 14:19:24 +02:00
parent da6621f2ff
commit f798ef1d76

View File

@@ -1223,7 +1223,7 @@ class DesignerComboField extends DesignerFormField
$sChecked = $this->defaultValue ? 'checked' : '';
$sMandatory = $this->bMandatory ? 'true' : 'false';
$sReadOnly = $this->IsReadOnly() ? 'disabled="disabled"' : '';
if ($this->IsSorted() && isset($this->aAllowedValues) )
if ($this->IsSorted() )
{
asort($this->aAllowedValues);
}
@@ -1271,7 +1271,6 @@ class DesignerComboField extends DesignerFormField
$sHtml .= "<option value=\"\">".$this->sNullLabel."</option>";
}
}
if ( isset($this->aAllowedValues) ) {
foreach ($this->aAllowedValues as $sKey => $sDisplayValue) {
if ($this->bMultipleSelection) {
$sSelected = in_array($sKey, $this->defaultValue) ? 'selected' : '';
@@ -1282,7 +1281,6 @@ class DesignerComboField extends DesignerFormField
$sHtmlValue = str_replace(' ', '&nbsp;', $sDisplayValue);
$sHtml .= "<option value=\"".htmlentities($sKey, ENT_QUOTES, 'UTF-8')."\" $sSelected>$sHtmlValue</option>";
}
}
$sHtml .= "</select>";
if ($this->bOtherChoices)
{