Merge pull request #10959 from atm-arnaud/8.0_fix_shipping_default_warehouse_if_one

FIX shipping default warehouse if only one warehouse
This commit is contained in:
Laurent Destailleur 2019-04-08 13:32:34 +02:00 committed by GitHub
commit cd1322de79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -894,7 +894,7 @@ if ($id > 0 || ! empty($ref))
print $langs->trans("WarehouseSource");
//print '</td>';
//print '<td>';
print $formproduct->selectWarehouses(! empty($object->warehouse_id)?$object->warehouse_id:-1, 'entrepot_id', '', 1, 0, 0, '', 0, 0, array(), 'minwidth200');
print $formproduct->selectWarehouses(! empty($object->warehouse_id)?$object->warehouse_id:'ifone', 'entrepot_id', '', 1, 0, 0, '', 0, 0, array(), 'minwidth200');
if (count($formproduct->cache_warehouses) <= 0)
{
print ' &nbsp; '.$langs->trans("WarehouseSourceNotDefined").' <a href="'.DOL_URL_ROOT.'/product/stock/card.php?action=create">'.$langs->trans("AddOne").'</a>';