Merge pull request #5572 from fmarcet/3.8

Fix: Can't set PRODUIT_LIMIT_SIZE to value 0
This commit is contained in:
Laurent Destailleur 2016-08-01 13:40:11 +02:00 committed by GitHub
commit e998a4b8a5

View File

@ -7,6 +7,7 @@
* Copyright (C) 2011-2012 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2012 Christophe Battarel <christophe.battarel@altairis.fr>
* Copyright (C) 2012 Cedric Salvador <csalvador@gpcsolutions.fr>
* Copyright (C) 2016 Ferran Marcet <fmarcet@2byte.es>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -108,7 +109,7 @@ if ($action == 'setModuleOptions')
}
}
if ($action == 'other' && GETPOST('value_PRODUIT_LIMIT_SIZE') > 0)
if ($action == 'other' && GETPOST('value_PRODUIT_LIMIT_SIZE') >= 0)
{
$res = dolibarr_set_const($db, "PRODUIT_LIMIT_SIZE", GETPOST('value_PRODUIT_LIMIT_SIZE'),'chaine',0,'',$conf->entity);
}