selects
This commit is contained in:
parent
89ceafaef5
commit
9dfa5c4218
@ -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"> </option>';
|
||||
if($showempty && $num > 1) $form.= '<option value="0"> </option>';
|
||||
|
||||
$i = 0;
|
||||
while ($i < $num)
|
||||
|
||||
@ -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> </td>';
|
||||
print "</tr>";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user