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;
|
global $conf, $langs;
|
||||||
|
|
||||||
// Clean parameters
|
// Clean parameters
|
||||||
|
if (!isset($this->enabled)) $this->enabled = '1';
|
||||||
$this->menu_handler = trim($this->menu_handler);
|
$this->menu_handler = trim($this->menu_handler);
|
||||||
$this->module = trim($this->module);
|
$this->module = trim($this->module);
|
||||||
$this->type = trim($this->type);
|
$this->type = trim($this->type);
|
||||||
|
|||||||
@ -39,7 +39,7 @@ CREATE TABLE llx_menu
|
|||||||
langs varchar(100), -- Lang file to load for translation
|
langs varchar(100), -- Lang file to load for translation
|
||||||
level smallint, -- Deprecated. Not used.
|
level smallint, -- Deprecated. Not used.
|
||||||
perms text, -- Condition to show enabled or disabled
|
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
|
usertype integer NOT NULL DEFAULT 0, -- 0 if menu for all users, 1 for external only, 2 for internal only
|
||||||
tms timestamp
|
tms timestamp
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user