FIX: Fix when add or modify ressources on events with duplicate entries
This commit is contained in:
parent
10fb793fb1
commit
c44522594a
@ -590,9 +590,11 @@ class ActionComm extends CommonObject
|
|||||||
|
|
||||||
$resql = $this->db->query($sql);
|
$resql = $this->db->query($sql);
|
||||||
if (!$resql) {
|
if (!$resql) {
|
||||||
$error++;
|
if ($this->db->errno() != 'DB_ERROR_RECORD_ALREADY_EXISTS') {
|
||||||
dol_syslog('Error to process userassigned: '.$this->db->lasterror(), LOG_ERR);
|
$error++;
|
||||||
$this->errors[] = $this->db->lasterror();
|
dol_syslog('Error to process userassigned: ' . $this->db->lasterror(), LOG_ERR);
|
||||||
|
$this->errors[] = $this->db->lasterror();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
//var_dump($sql);exit;
|
//var_dump($sql);exit;
|
||||||
}
|
}
|
||||||
@ -607,9 +609,11 @@ class ActionComm extends CommonObject
|
|||||||
|
|
||||||
$resql = $this->db->query($sql);
|
$resql = $this->db->query($sql);
|
||||||
if (!$resql) {
|
if (!$resql) {
|
||||||
$error++;
|
if ($this->db->errno() != 'DB_ERROR_RECORD_ALREADY_EXISTS') {
|
||||||
dol_syslog('Error to process socpeopleassigned: '.$this->db->lasterror(), LOG_ERR);
|
$error++;
|
||||||
$this->errors[] = $this->db->lasterror();
|
dol_syslog('Error to process socpeopleassigned: ' . $this->db->lasterror(), LOG_ERR);
|
||||||
|
$this->errors[] = $this->db->lasterror();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1152,8 +1156,10 @@ class ActionComm extends CommonObject
|
|||||||
|
|
||||||
$resql = $this->db->query($sql);
|
$resql = $this->db->query($sql);
|
||||||
if (!$resql) {
|
if (!$resql) {
|
||||||
$error++;
|
if ($this->db->errno() != 'DB_ERROR_RECORD_ALREADY_EXISTS') {
|
||||||
$this->errors[] = $this->db->lasterror();
|
$error++;
|
||||||
|
$this->errors[] = $this->db->lasterror();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
//var_dump($sql);exit;
|
//var_dump($sql);exit;
|
||||||
}
|
}
|
||||||
@ -1170,8 +1176,10 @@ class ActionComm extends CommonObject
|
|||||||
|
|
||||||
$resql = $this->db->query($sql);
|
$resql = $this->db->query($sql);
|
||||||
if (!$resql) {
|
if (!$resql) {
|
||||||
$error++;
|
if ($this->db->errno() != 'DB_ERROR_RECORD_ALREADY_EXISTS') {
|
||||||
$this->errors[] = $this->db->lasterror();
|
$error++;
|
||||||
|
$this->errors[] = $this->db->lasterror();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user