Merge pull request #3793 from olsesacl/develop-employee
Fix: Bug: if $this->employe no exist
This commit is contained in:
commit
f3a5331095
@ -26,7 +26,7 @@ create table llx_user
|
|||||||
ref_ext varchar(50), -- reference into an external system (not used by dolibarr)
|
ref_ext varchar(50), -- reference into an external system (not used by dolibarr)
|
||||||
ref_int varchar(50), -- reference into an internal system (deprecated)
|
ref_int varchar(50), -- reference into an internal system (deprecated)
|
||||||
|
|
||||||
employee tinyint DEFAULT 0, -- employee 0/1
|
employee tinyint DEFAULT 0, -- 1 if user is an employee
|
||||||
|
|
||||||
datec datetime,
|
datec datetime,
|
||||||
tms timestamp,
|
tms timestamp,
|
||||||
@ -76,7 +76,6 @@ create table llx_user
|
|||||||
nb_holiday integer DEFAULT 0,
|
nb_holiday integer DEFAULT 0,
|
||||||
thm double(24,8),
|
thm double(24,8),
|
||||||
tjm double(24,8),
|
tjm double(24,8),
|
||||||
employee tinyint DEFAULT 1, -- 1 if user is an employee
|
|
||||||
salary double(24,8),
|
salary double(24,8),
|
||||||
salaryextra double(24,8),
|
salaryextra double(24,8),
|
||||||
weeklyhours double(16,8)
|
weeklyhours double(16,8)
|
||||||
|
|||||||
@ -1156,7 +1156,7 @@ class User extends CommonObject
|
|||||||
// Clean parameters
|
// Clean parameters
|
||||||
$this->lastname = trim($this->lastname);
|
$this->lastname = trim($this->lastname);
|
||||||
$this->firstname = trim($this->firstname);
|
$this->firstname = trim($this->firstname);
|
||||||
$this->employee = trim($this->employee);
|
$this->employee = $this->employee?$this->employee:0;
|
||||||
$this->login = trim($this->login);
|
$this->login = trim($this->login);
|
||||||
$this->gender = trim($this->gender);
|
$this->gender = trim($this->gender);
|
||||||
$this->pass = trim($this->pass);
|
$this->pass = trim($this->pass);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user