diff --git a/dev/translation/sanity_check_en_langfiles.php b/dev/translation/sanity_check_en_langfiles.php index b1ccca39dee..fdc0f738431 100644 --- a/dev/translation/sanity_check_en_langfiles.php +++ b/dev/translation/sanity_check_en_langfiles.php @@ -218,5 +218,4 @@ if ($_REQUEST['unused'] == 'true') { print_r($unused); } echo ""; -echo ""; -?> \ No newline at end of file +echo ""; \ No newline at end of file diff --git a/htdocs/core/modules/modFournisseur.class.php b/htdocs/core/modules/modFournisseur.class.php index dc537426179..13ef54c1770 100644 --- a/htdocs/core/modules/modFournisseur.class.php +++ b/htdocs/core/modules/modFournisseur.class.php @@ -258,7 +258,7 @@ class modFournisseur extends DolibarrModules $this->rights[$r][4] = 'commande'; $this->rights[$r][5] = 'export'; - if ($conf->global->SUPPLIER_ORDER_DOUBLE_APPROVAL) + if (! empty($conf->global->SUPPLIER_ORDER_DOUBLE_APPROVAL)) { $r++; $this->rights[$r][0] = 1190; diff --git a/test/phpunit/BuildDocTest.php b/test/phpunit/BuildDocTest.php index c21c482ab5e..443310c10d3 100644 --- a/test/phpunit/BuildDocTest.php +++ b/test/phpunit/BuildDocTest.php @@ -56,6 +56,9 @@ require_once dirname(__FILE__).'/../../htdocs/core/modules/project/modules_proje require_once dirname(__FILE__).'/../../htdocs/core/modules/fichinter/modules_fichinter.php'; require_once dirname(__FILE__).'/../../htdocs/core/modules/expedition/modules_expedition.php'; +require_once dirname(__FILE__).'/../../htdocs/core/modules/modExpenseReport.class.php'; + + if (empty($user->id)) { print "Load permissions for admin user nb 1\n"; $user->fetch(1); @@ -103,6 +106,10 @@ class BuildDocTest extends PHPUnit_Framework_TestCase { global $conf,$user,$langs,$db; + print "Enable module modExpenseReport"; + $moduledescriptor=new modExpenseReport($db); + $moduledescriptor->init(); + if (! $conf->facture->enabled) { print __METHOD__." invoice module not enabled\n"; die(); } if (! $conf->commande->enabled) { print __METHOD__." order module not enabled\n"; die(); } if (! $conf->propal->enabled) { print __METHOD__." propal module not enabled\n"; die(); }