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;
|
global $langs;
|
||||||
|
|
||||||
|
if (empty($id) && empty($ref) && empty($ref_ext) && empty($email_msgid)) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
$sql = "SELECT a.id,";
|
$sql = "SELECT a.id,";
|
||||||
$sql .= " a.id as ref,";
|
$sql .= " a.id as ref,";
|
||||||
$sql .= " a.entity,";
|
$sql .= " a.entity,";
|
||||||
|
|||||||
@ -526,7 +526,9 @@ class Project extends CommonObject
|
|||||||
{
|
{
|
||||||
global $conf;
|
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 = "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,";
|
$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;
|
global $langs;
|
||||||
|
|
||||||
// Check parameters
|
// Check parameters
|
||||||
if (!$id && !$track_id && !$ref && !$email_msgid) {
|
if (empty($id) && empty($ref) && empty($track_id) && empty($email_msgid)) {
|
||||||
$this->error = 'ErrorWrongParameters';
|
$this->error = 'ErrorWrongParameters';
|
||||||
dol_print_error(get_class($this)."::fetch ".$this->error);
|
dol_print_error(get_class($this)."::fetch ".$this->error);
|
||||||
return -1;
|
return -1;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user