Fix pagination when MAIN_DISABLE_FULL_SCANLIST is on

This commit is contained in:
Laurent Destailleur
2017-01-15 20:49:20 +01:00
parent 6aa26e0f62
commit d14e4dbaba
61 changed files with 76 additions and 67 deletions

View File

@@ -139,7 +139,7 @@ class CommandeApi extends DolibarrApi
$sql .= " AND sc.fk_user = ".$search_sale;
}
$nbtotalofrecords = -1;
$nbtotalofrecords = '';
if (empty($conf->global->MAIN_DISABLE_FULL_SCANLIST))
{
$result = $db->query($sql);