Fix phpcs
This commit is contained in:
parent
b80ba1179f
commit
1b22de5652
@ -310,7 +310,6 @@ class modEmailCollector extends DolibarrModules
|
|||||||
$tmpresql = $this->db->query($tmpsql);
|
$tmpresql = $this->db->query($tmpsql);
|
||||||
if ($tmpresql) {
|
if ($tmpresql) {
|
||||||
if ($this->db->num_rows($tmpresql) == 0) {
|
if ($this->db->num_rows($tmpresql) == 0) {
|
||||||
|
|
||||||
$descriptionA1 = 'This collector will scan your mailbox "Sent" directory to find emails that was sent as an answer of a Ticket (Module Ticket must be enabled) directly from your email browser instead of from Dolibarr. If such an email is found, the event of answer is recorded into Dolibarr.';
|
$descriptionA1 = 'This collector will scan your mailbox "Sent" directory to find emails that was sent as an answer of a Ticket (Module Ticket must be enabled) directly from your email browser instead of from Dolibarr. If such an email is found, the event of answer is recorded into Dolibarr.';
|
||||||
|
|
||||||
$sqlforexampleA1 = "INSERT INTO ".MAIN_DB_PREFIX."emailcollector_emailcollector (entity, ref, label, description, source_directory, date_creation, fk_user_creat, status)";
|
$sqlforexampleA1 = "INSERT INTO ".MAIN_DB_PREFIX."emailcollector_emailcollector (entity, ref, label, description, source_directory, date_creation, fk_user_creat, status)";
|
||||||
|
|||||||
@ -1943,11 +1943,6 @@ class EmailCollector extends CommonObject
|
|||||||
{
|
{
|
||||||
$errorforactions++;
|
$errorforactions++;
|
||||||
} else {
|
} else {
|
||||||
/*if (is_numeric($candidaturetocreate->ref) && $candidaturetocreate->ref <= 0)
|
|
||||||
{
|
|
||||||
$errorforactions++;
|
|
||||||
$this->error = 'Failed to create cancidature: Can\'t get a valid value for the field ref with numbering template = '.$modele.', thirdparty id = '.$thirdpartystatic->id;
|
|
||||||
} else {*/
|
|
||||||
// Create project
|
// Create project
|
||||||
$result = $candidaturetocreate->create($user);
|
$result = $candidaturetocreate->create($user);
|
||||||
if ($result <= 0)
|
if ($result <= 0)
|
||||||
@ -1956,7 +1951,6 @@ class EmailCollector extends CommonObject
|
|||||||
$this->error = 'Failed to create ticket: '.$langs->trans($candidaturetocreate->error);
|
$this->error = 'Failed to create ticket: '.$langs->trans($candidaturetocreate->error);
|
||||||
$this->errors = $candidaturetocreate->errors;
|
$this->errors = $candidaturetocreate->errors;
|
||||||
}
|
}
|
||||||
//}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Create event specific on hook
|
// Create event specific on hook
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user