2
0
forked from Wavyzz/dolibarr

Fix: boxes must not be removed after update

This commit is contained in:
Laurent Destailleur
2012-03-03 17:37:45 +01:00
parent 4f1a49bd42
commit 80b75fa67d
45 changed files with 614 additions and 428 deletions

View File

@@ -236,7 +236,7 @@ class modUser extends DolibarrModules
global $conf;
// Permissions
$this->remove();
$this->remove($options);
$sql = array();
@@ -244,17 +244,19 @@ class modUser extends DolibarrModules
}
/**
* Function called when module is disabled.
* Remove from database constants, boxes and permissions from Dolibarr database.
* Data directories are not deleted.
*
* @return int 1 if OK, 0 if KO
* Function called when module is disabled.
* Remove from database constants, boxes and permissions from Dolibarr database.
* Data directories are not deleted
*
* @param string $options Options when enabling module ('', 'noboxes')
* @return int 1 if OK, 0 if KO
*/
function remove()
{
function remove($options='')
{
$sql = array();
return $this->_remove($sql);
}
return $this->_remove($sql,$options);
}
}
?>