Fix default value of enabled property of menu entry
This commit is contained in:
parent
45762ecccb
commit
c7ca99accb
2 changed files with 2 additions and 1 deletions
|
|
@ -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 a new issue