Fix: Bad param 'zone' into printCommon

This commit is contained in:
Laurent Destailleur 2013-06-07 13:41:32 +02:00
parent 35fbc9b066
commit 421c3fb35b

View File

@ -791,8 +791,8 @@ class Form
}
// Construct $out and $outarray
$out.= '<select id="'.$htmlname.'" class="flat" name="'.$htmlname.'">';
if ($showempty) $out.= '<option value="-1"></option>';
$out.= '<select id="'.$htmlname.'" class="flat" name="'.$htmlname.'">'."\n";
if ($showempty) $out.= '<option value="-1"></option>'."\n";
$num = $this->db->num_rows($resql);
$i = 0;
if ($num)
@ -821,9 +821,10 @@ class Form
array_push($outarray, array('key'=>$obj->rowid, 'value'=>$obj->name, 'label'=>$obj->name));
$i++;
if (($i % 10) == 0) $out.="\n";
}
}
$out.= '</select>';
$out.= '</select>'."\n";
}
else
{