Fix: Module was not able to activate if field type not filled.
This commit is contained in:
parent
ba55f10ea2
commit
e8c08414d6
@ -618,6 +618,7 @@ class DolibarrModules
|
||||
dolibarr_syslog("DolibarrModules::insert_const sql=".$sql);
|
||||
if (! $this->db->query($sql) )
|
||||
{
|
||||
dolibarr_syslog("DolibarrModules::insert_const ".$this->db->lasterror(), LOG_ERR);
|
||||
$err++;
|
||||
}
|
||||
}
|
||||
@ -660,6 +661,8 @@ class DolibarrModules
|
||||
$r_subperms = $this->rights[$key][5];
|
||||
$r_modul = $this->rights_class;
|
||||
|
||||
if (empty($r_type)) $r_type='w';
|
||||
|
||||
if (strlen($r_perms) )
|
||||
{
|
||||
if (strlen($r_subperms) )
|
||||
|
||||
Loading…
Reference in New Issue
Block a user