This commit is contained in:
Cédric Salvador 2013-06-12 14:50:32 +02:00
parent 89ceafaef5
commit 9dfa5c4218
2 changed files with 2 additions and 8 deletions

View File

@ -1860,15 +1860,9 @@ class Form
{
$form.= '<option value="0">-- '.$langs->trans("NoSupplierPriceDefinedForThisProduct").' --</option>';
}
else if ($num == 1) {
$objp = $this->db->fetch_object($result);
$form = $objp->nom;
$form .= '<input type="hidden" name="'.$htmlname.'" value="'.$objp->idprodfournprice.'">';
}
else
{
$form = '<select class="flat" name="'.$htmlname.'">';
if($showempty) $form.= '<option value="0">&nbsp;</option>';
if($showempty && $num > 1) $form.= '<option value="0">&nbsp;</option>';
$i = 0;
while ($i < $num)

View File

@ -564,7 +564,7 @@ if ($resql) {
$form = new Form($db);
print '<td align="right">';
print $form->select_product_fourn_price($prod->id,
'fourn' . $i);
'fourn' . $i, 1);
print '</td>';
print '<td>&nbsp</td>';
print "</tr>";