Fix select empty value for thirdparties select combo

This commit is contained in:
Laurent Destailleur 2021-08-30 18:56:52 +02:00
parent 9db5f85d4e
commit b78771f8c4

View File

@ -1413,7 +1413,7 @@ class Form
}
}
if ($showempty) {
$out .= '<option value="-1" data-html="'.dol_escape_htmltag('<span class="opacitymedium">'.$textifempty.'</span>').'">'.$textifempty.'</option>'."\n";
$out .= '<option value="-1" data-html="'.dol_escape_htmltag('<span class="opacitymedium">'.($textifempty ? $textifempty : '&nbsp;').'</span>').'">'.$textifempty.'</option>'."\n";
}
$num = $this->db->num_rows($resql);