Fix sql phpunit regression

This commit is contained in:
Laurent Destailleur 2015-10-23 15:24:47 +02:00
parent f3a5331095
commit 016dbd39ee
3 changed files with 8 additions and 6 deletions

View File

@ -86,5 +86,3 @@ CREATE TABLE IF NOT EXISTS llx_establishment (
status tinyint DEFAULT 1
) ENGINE=InnoDB;
ALTER TABLE llx_user ADD COLUMN employee tinyint DEFAULT 0 AFTER ref_int;

View File

@ -26,7 +26,7 @@ create table llx_user
ref_ext varchar(50), -- reference into an external system (not used by dolibarr)
ref_int varchar(50), -- reference into an internal system (deprecated)
employee tinyint DEFAULT 0, -- 1 if user is an employee
employee tinyint DEFAULT 1, -- 1 if user is an employee
datec datetime,
tms timestamp,

View File

@ -126,13 +126,17 @@ class User extends CommonObject
{
$this->db = $db;
// Preference utilisateur
// User preference
$this->liste_limit = 0;
$this->clicktodial_loaded = 0;
// For cache usage
$this->all_permissions_are_loaded = 0;
$this->admin=0;
// Force some default values
$this->admin = 0;
$this->employee = 1;
$this->conf = new stdClass();
$this->rights = new stdClass();
$this->rights->user = new stdClass();