now adding contact to conforbooth, not only to thirdparty

This commit is contained in:
Dorian Vabre 2021-05-06 14:26:41 +02:00
parent 9c20e92e17
commit a00c9c44c3
2 changed files with 115 additions and 116 deletions

View File

@ -378,12 +378,11 @@ if (empty($reshook) && $action == 'add') {
$errmsg .= $conforbooth->error; $errmsg .= $conforbooth->error;
} else { } else {
// Adding the contact to the project // Adding the contact to the project
/*$resultaddcontact = $conforbooth->add_contact($contact); $resultaddcontact = $conforbooth->add_contact($contact->id, 'RESPONSIBLE');
if ($resultaddcontact<0) { if ($resultaddcontact<0) {
$error++; $error++;
$errmsg .= $conforbooth->error; $errmsg .= $conforbooth->error;
} else {*/ } else {
// If this is a paying booth, we have to redirect to payment page and create an invoice // If this is a paying booth, we have to redirect to payment page and create an invoice
if (!empty(floatval($project->price_booth))) { if (!empty(floatval($project->price_booth))) {
$productforinvoicerow = new Product($db); $productforinvoicerow = new Product($db);
@ -491,7 +490,7 @@ if (empty($reshook) && $action == 'add') {
dol_syslog("Failed to send EMail to ".$sendto, LOG_ERR, 0, '_payment'); dol_syslog("Failed to send EMail to ".$sendto, LOG_ERR, 0, '_payment');
} }
} }
//} }
} }
} }
} }

View File

@ -374,11 +374,11 @@ if (empty($reshook) && $action == 'add') {
$errmsg .= $conforbooth->error; $errmsg .= $conforbooth->error;
} else { } else {
// Adding the contact to the project // Adding the contact to the project
/*$resultaddcontact = $conforbooth->add_contact($contact); $resultaddcontact = $conforbooth->add_contact($contact->id, 'SPEAKER');
if ($resultaddcontact<0) { if ($resultaddcontact<0) {
$error++; $error++;
$errmsg .= $conforbooth->error; $errmsg .= $conforbooth->error;
} else {*/ } else {
$conforbooth->status = CONFERENCEORBOOTH::STATUS_SUGGESTED; $conforbooth->status = CONFERENCEORBOOTH::STATUS_SUGGESTED;
$conforbooth->update($user); $conforbooth->update($user);
@ -424,7 +424,7 @@ if (empty($reshook) && $action == 'add') {
} else { } else {
dol_syslog("Failed to send EMail to ".$sendto, LOG_ERR, 0, '_payment'); dol_syslog("Failed to send EMail to ".$sendto, LOG_ERR, 0, '_payment');
} }
//} }
} }
} }
} }