mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-11 18:32:32 +01:00
Fix default value of enabled property of menu entry
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user