FIX : bug on selected value for select_bom() function
This commit is contained in:
parent
06646d4540
commit
02d9c9897a
@ -2464,8 +2464,9 @@ class Form
|
|||||||
while ($obj = $db->fetch_object($resql)) {
|
while ($obj = $db->fetch_object($resql)) {
|
||||||
$product = new Product($db);
|
$product = new Product($db);
|
||||||
$res = $product->fetch($obj->fk_product);
|
$res = $product->fetch($obj->fk_product);
|
||||||
if ($obj->rowid == $selected) $out .= '<option value="'.$obj->rowid.'" selected>'.$obj->ref.' - '. $product->label .' - '.$obj->label.'</option>';
|
$out .= '<option value="'.$obj->rowid.'"';
|
||||||
$out .= '<option value="'.$obj->rowid.'">'.$obj->ref.' - '.$product->label .' - '. $obj->label.'</option>';
|
if ($obj->rowid == $selected) $out .= 'selected';
|
||||||
|
$out .= '>'.$obj->ref.' - '.$product->label .' - '. $obj->label.'</option>';
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$error++;
|
$error++;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user