Fix: $optiontype not used

Fix: select_array is deprecated
This commit is contained in:
Regis Houssin
2010-08-19 15:13:17 +00:00
parent 9c333459c6
commit 9601f8a353
5 changed files with 9 additions and 32 deletions

View File

@@ -268,16 +268,8 @@ if ($id > 0 || ! empty($ref))
// Warehouse
print '<td align="right">';
/*if (sizeof($user->entrepots) === 1) deprecated
{
$uentrepot = array();
$uentrepot[$user->entrepots[0]['id']] = $user->entrepots[0]['label'];
print $html->selectarray("entrepot_".$i, $uentrepot, '', $disabled, 0, 0, 0, '', 0, 0, $disabled);
}
else
{*/
print $html->selectarray("entrepot_".$i, $entrepot->list_array(), '', $disabled, 0, 0, 0, '', 0, 0, $disabled);
//}
print $html->selectarray("entrepot_".$i, $entrepot->list_array(), '', $disabled, 0, 0, '', 0, 0, $disabled);
print "</td>\n";
print "</tr>\n";
}