2
0
forked from Wavyzz/dolibarr

Debug webportal module

This commit is contained in:
Laurent Destailleur
2024-01-27 17:23:03 +01:00
parent f9de28a9e9
commit 25a91c63cf
15 changed files with 186 additions and 160 deletions

View File

@@ -40,7 +40,7 @@ class modTakePos extends DolibarrModules
*/
public function __construct($db)
{
global $langs, $conf;
global $conf;
$this->db = $db;
@@ -54,7 +54,7 @@ class modTakePos extends DolibarrModules
// It is used to group modules by family in module setup page
$this->family = "portal";
// Module position in the family on 2 digits ('01', '10', '20', ...)
$this->module_position = '60';
$this->module_position = '45';
// Gives the possibility to the module, to provide his own family info and position of this family (Overwrite $this->family and $this->module_position. Avoid this)
//$this->familyinfo = array('myownfamily' => array('position' => '01', 'label' => $langs->trans("MyOwnFamily")));
@@ -120,8 +120,8 @@ class modTakePos extends DolibarrModules
//1=>array('TAKEPOS_MYCONSTANT', 'chaine', 'avalue', 'This is a constant to add', 1, 'allentities', 1)
);
if (!isset($conf->takepos) || !isset($conf->takepos->enabled)) {
// To avoid warning
if (!isModEnabled('takepos')) {
$conf->takepos = new stdClass();
$conf->takepos->enabled = 0;
}