Fix: Can not create a member
This commit is contained in:
parent
2a0e021382
commit
53d1a13266
@ -371,10 +371,11 @@ class Adherent extends CommonObject
|
|||||||
|
|
||||||
// Insertion membre
|
// Insertion membre
|
||||||
$sql = "INSERT INTO ".MAIN_DB_PREFIX."adherent";
|
$sql = "INSERT INTO ".MAIN_DB_PREFIX."adherent";
|
||||||
$sql.= " (datec,login)";
|
$sql.= " (datec,login,fk_user_author,fk_user_mod,fk_user_valid)";
|
||||||
$sql.= " VALUES (";
|
$sql.= " VALUES (";
|
||||||
$sql.= " '".$this->db->idate($this->datec)."',";
|
$sql.= " '".$this->db->idate($this->datec)."',";
|
||||||
$sql.= " '".addslashes($this->login)."'";
|
$sql.= " '".addslashes($this->login)."',";
|
||||||
|
$sql.= " '".$user->id."',null,null";
|
||||||
$sql.= ")";
|
$sql.= ")";
|
||||||
|
|
||||||
dolibarr_syslog("Adherent::create sql=".$sql);
|
dolibarr_syslog("Adherent::create sql=".$sql);
|
||||||
|
|||||||
@ -310,3 +310,6 @@ INSERT INTO llx_c_paper_format (rowid, code, label, width, height, unit, active)
|
|||||||
INSERT INTO llx_c_paper_format (rowid, code, label, width, height, unit, active) VALUES (225, 'Canadian P6', 'Format Canadian P6', '107', '140', 'mm', 0);
|
INSERT INTO llx_c_paper_format (rowid, code, label, width, height, unit, active) VALUES (225, 'Canadian P6', 'Format Canadian P6', '107', '140', 'mm', 0);
|
||||||
|
|
||||||
ALTER TABLE llx_commande_fournisseurdet DROP COLUMN price;
|
ALTER TABLE llx_commande_fournisseurdet DROP COLUMN price;
|
||||||
|
|
||||||
|
alter table llx_adherent modify fk_user_mod integer;
|
||||||
|
alter table llx_adherent modify fk_user_valid integer;
|
||||||
|
|||||||
@ -53,7 +53,7 @@ create table llx_adherent
|
|||||||
datec datetime, -- date de creation
|
datec datetime, -- date de creation
|
||||||
tms timestamp, -- date de modification
|
tms timestamp, -- date de modification
|
||||||
fk_user_author integer NOT NULL,
|
fk_user_author integer NOT NULL,
|
||||||
fk_user_mod integer NOT NULL,
|
fk_user_mod integer,
|
||||||
fk_user_valid integer NOT NULL,
|
fk_user_valid integer,
|
||||||
UNIQUE INDEX(login)
|
UNIQUE INDEX(login)
|
||||||
)type=innodb;
|
)type=innodb;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user