FIX Collector to create lead was broken

This commit is contained in:
Laurent Destailleur 2021-06-14 20:06:52 +02:00
parent a79afeaf02
commit d154ec2344
3 changed files with 8 additions and 2 deletions

View File

@ -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,";

View File

@ -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,";

View File

@ -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;