Fix: la virgule n'tait pas modifie en point lors de la division

This commit is contained in:
Regis Houssin 2007-11-30 12:40:10 +00:00
parent 76cb51b11e
commit cc6b14543f

View File

@ -679,13 +679,16 @@ class Form
{
if ($conf->use_ajax && $conf->global->COMPANY_USE_SEARCH_TO_SELECT)
{
if ($selected) $obj = $this->db->fetch_object($resql);
$socid = $obj->rowid?$obj->rowid:'';
$socid = 0;
if ($selected)
{
$obj = $this->db->fetch_object($resql);
$socid = $obj->rowid?$obj->rowid:'';
}
print '<table class="nobordernopadding"><tr class="nocellnopadd">';
print '<td class="nobordernopadding">';
print '<div>';
if ($obj->rowid == 0)
if ($socid == 0)
{
print '<input type="text" size="30" id="'.$htmlname.'" name="'.$htmlname.'" value=""/>';
}