mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix default value of enabled property of menu entry
This commit is contained in:
parent
45762ecccb
commit
c7ca99accb
|
|
@ -173,6 +173,7 @@ class Menubase
|
|||
global $conf, $langs;
|
||||
|
||||
// Clean parameters
|
||||
if (!isset($this->enabled)) $this->enabled = '1';
|
||||
$this->menu_handler = trim($this->menu_handler);
|
||||
$this->module = trim($this->module);
|
||||
$this->type = trim($this->type);
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ CREATE TABLE llx_menu
|
|||
langs varchar(100), -- Lang file to load for translation
|
||||
level smallint, -- Deprecated. Not used.
|
||||
perms text, -- Condition to show enabled or disabled
|
||||
enabled text NULL default '1', -- Condition to show or hide
|
||||
enabled text NULL, -- Condition to show or hide
|
||||
usertype integer NOT NULL DEFAULT 0, -- 0 if menu for all users, 1 for external only, 2 for internal only
|
||||
tms timestamp
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user