Skip to content
Snippets Groups Projects
Commit f74dfe28 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix missing default setup when module is enabled

parent 64026c41
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,11 @@ class modMargin extends DolibarrModules
$this->langfiles = array("margins");
// Constants
$this->const = array(); // List of particular constants to add when module is enabled
// List of particular constants to add when module is enabled (key, 'chaine', value, desc, visible, 'current' or 'allentities', deleteonunactive)
// Example: $this->const=array(0=>array('MYMODULE_MYNEWCONST1','chaine','myvalue','This is a constant to add',1),
// 1=>array('MYMODULE_MYNEWCONST2','chaine','myvalue','This is another constant to add',0, 'current', 1)
// );
$this->const = array(0=>array('MARGIN_TYPE','chaine','1','Rule for margin calculation by default',0,'current',0)); // List of particular constants to add when module is enabled
// New pages on tabs
$this->tabs = array(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment