FIX Collector to create lead was broken
This commit is contained in:
parent
a79afeaf02
commit
d154ec2344
@ -683,6 +683,10 @@ class ActionComm extends CommonObject
|
||||
{
|
||||
global $langs;
|
||||
|
||||
if (empty($id) && empty($ref) && empty($ref_ext) && empty($email_msgid)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
$sql = "SELECT a.id,";
|
||||
$sql .= " a.id as ref,";
|
||||
$sql .= " a.entity,";
|
||||
|
||||
@ -526,7 +526,9 @@ class Project extends CommonObject
|
||||
{
|
||||
global $conf;
|
||||
|
||||
if (empty($id) && empty($ref)) return -1;
|
||||
if (empty($id) && empty($ref) && empty($ref_ext) && empty($email_msgid)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
$sql = "SELECT rowid, entity, ref, title, description, public, datec, opp_amount, budget_amount,";
|
||||
$sql .= " tms, dateo, datee, date_close, fk_soc, fk_user_creat, fk_user_modif, fk_user_close, fk_statut as status, fk_opp_status, opp_percent,";
|
||||
|
||||
@ -529,7 +529,7 @@ class Ticket extends CommonObject
|
||||
global $langs;
|
||||
|
||||
// Check parameters
|
||||
if (!$id && !$track_id && !$ref && !$email_msgid) {
|
||||
if (empty($id) && empty($ref) && empty($track_id) && empty($email_msgid)) {
|
||||
$this->error = 'ErrorWrongParameters';
|
||||
dol_print_error(get_class($this)."::fetch ".$this->error);
|
||||
return -1;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user