Fix :: List limit is not defined or based on limit product configuration
Discussion http://www.dolibarr.fr/forum/527-bugs-sur-la-version-stable-courante/50579-transfert-stock-pas-sur-tous-les-produits#51265
This commit is contained in:
parent
b62fd30505
commit
a725a08c13
@ -265,7 +265,15 @@ print '<tr '.$bc[$var].'>';
|
|||||||
print '<td colspan="2">';
|
print '<td colspan="2">';
|
||||||
$filtertype=0;
|
$filtertype=0;
|
||||||
if (! empty($conf->global->STOCK_SUPPORTS_SERVICES)) $filtertype='';
|
if (! empty($conf->global->STOCK_SUPPORTS_SERVICES)) $filtertype='';
|
||||||
print $form->select_produits($id_product,'productid',$filtertype);
|
if ($conf->global->PRODUIT_LIMIT_SIZE <= 0)
|
||||||
|
{
|
||||||
|
$limit='';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$limit = $conf->global->PRODUIT_LIMIT_SIZE;
|
||||||
|
}
|
||||||
|
print $form->select_produits($id_product,'productid',$filtertype,$limit);
|
||||||
print '</td>';
|
print '</td>';
|
||||||
// In warehouse
|
// In warehouse
|
||||||
print '<td>';
|
print '<td>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user