Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
4570da5463
@ -122,18 +122,23 @@ if ($company->id) {
|
|||||||
} elseif (empty(trim($object->email))) {
|
} elseif (empty(trim($object->email))) {
|
||||||
// when adherent e-mail is empty, use only company e-mail
|
// when adherent e-mail is empty, use only company e-mail
|
||||||
$v->setEmail($company->email);
|
$v->setEmail($company->email);
|
||||||
} elseif (strtolower(end(explode("@", $object->email))) == strtolower(end(explode("@", $company->email)))) {
|
|
||||||
// when e-mail domain of adherent and company are the same, use adherent e-mail at first (and company e-mail at second)
|
|
||||||
$v->setEmail($object->email);
|
|
||||||
|
|
||||||
// support by Microsoft Outlook (2019 and possible earlier)
|
|
||||||
$v->setEmail($company->email, 'INTERNET');
|
|
||||||
} else {
|
} else {
|
||||||
// when e-mail of adherent and company complete different use company e-mail at first (and adherent e-mail at second)
|
$tmpobject = explode("@", trim($object->email));
|
||||||
$v->setEmail($company->email);
|
$tmpcompany = explode("@", trim($company->email));
|
||||||
|
|
||||||
// support by Microsoft Outlook (2019 and possible earlier)
|
if (strtolower(end($tmpobject)) == strtolower(end($tmpcompany))) {
|
||||||
$v->setEmail($object->email, 'INTERNET');
|
// when e-mail domain of adherent and company are the same, use adherent e-mail at first (and company e-mail at second)
|
||||||
|
$v->setEmail($object->email);
|
||||||
|
|
||||||
|
// support by Microsoft Outlook (2019 and possible earlier)
|
||||||
|
$v->setEmail($company->email, 'INTERNET');
|
||||||
|
} else {
|
||||||
|
// when e-mail of adherent and company complete different use company e-mail at first (and adherent e-mail at second)
|
||||||
|
$v->setEmail($company->email);
|
||||||
|
|
||||||
|
// support by Microsoft Outlook (2019 and possible earlier)
|
||||||
|
$v->setEmail($object->email, 'INTERNET');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Si adherent lie a un tiers non de type "particulier"
|
// Si adherent lie a un tiers non de type "particulier"
|
||||||
|
|||||||
@ -92,18 +92,23 @@ if ($company->id) {
|
|||||||
} elseif (empty(trim($contact->email))) {
|
} elseif (empty(trim($contact->email))) {
|
||||||
// when contact e-mail is empty, use only company e-mail
|
// when contact e-mail is empty, use only company e-mail
|
||||||
$v->setEmail($company->email);
|
$v->setEmail($company->email);
|
||||||
} elseif (strtolower(end(explode("@", $contact->email))) == strtolower(end(explode("@", $company->email)))) {
|
|
||||||
// when e-mail domain of contact and company are the same, use contact e-mail at first (and company e-mail at second)
|
|
||||||
$v->setEmail($contact->email);
|
|
||||||
|
|
||||||
// support by Microsoft Outlook (2019 and possible earlier)
|
|
||||||
$v->setEmail($company->email, 'INTERNET');
|
|
||||||
} else {
|
} else {
|
||||||
// when e-mail of contact and company complete different use company e-mail at first (and contact e-mail at second)
|
$tmpcontact = explode("@", trim($contact->email));
|
||||||
$v->setEmail($company->email);
|
$tmpcompany = explode("@", trim($company->email));
|
||||||
|
|
||||||
// support by Microsoft Outlook (2019 and possible earlier)
|
if (strtolower(end($tmpcontact)) == strtolower(end($tmpcompany))) {
|
||||||
$v->setEmail($contact->email, 'INTERNET');
|
// when e-mail domain of contact and company are the same, use contact e-mail at first (and company e-mail at second)
|
||||||
|
$v->setEmail($contact->email);
|
||||||
|
|
||||||
|
// support by Microsoft Outlook (2019 and possible earlier)
|
||||||
|
$v->setEmail($company->email, 'INTERNET');
|
||||||
|
} else {
|
||||||
|
// when e-mail of contact and company complete different use company e-mail at first (and contact e-mail at second)
|
||||||
|
$v->setEmail($company->email);
|
||||||
|
|
||||||
|
// support by Microsoft Outlook (2019 and possible earlier)
|
||||||
|
$v->setEmail($contact->email, 'INTERNET');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Si contact lie a un tiers non de type "particulier"
|
// Si contact lie a un tiers non de type "particulier"
|
||||||
|
|||||||
@ -703,8 +703,8 @@ class Lessc
|
|||||||
// has default value
|
// has default value
|
||||||
$value = $a[2];
|
$value = $a[2];
|
||||||
} else {
|
} else {
|
||||||
$this->throwError("Failed to assign arg ".$a[1]);
|
|
||||||
$value = null; // :(
|
$value = null; // :(
|
||||||
|
$this->throwError("Failed to assign arg ".$a[1]); // This end function by throwing an exception
|
||||||
}
|
}
|
||||||
|
|
||||||
$value = $this->reduce($value);
|
$value = $this->reduce($value);
|
||||||
@ -1118,8 +1118,7 @@ class Lessc
|
|||||||
if (isset($items[0])) {
|
if (isset($items[0])) {
|
||||||
return $this->lib_e($items[0]);
|
return $this->lib_e($items[0]);
|
||||||
}
|
}
|
||||||
$this->throwError("unrecognised input");
|
$this->throwError("unrecognised input"); // This end function by throwing an exception
|
||||||
return null;
|
|
||||||
case "string":
|
case "string":
|
||||||
$arg[1] = "";
|
$arg[1] = "";
|
||||||
return $arg;
|
return $arg;
|
||||||
|
|||||||
@ -521,7 +521,7 @@ class Skill extends CommonObject
|
|||||||
*/
|
*/
|
||||||
public function delete(User $user, $notrigger = false)
|
public function delete(User $user, $notrigger = false)
|
||||||
{
|
{
|
||||||
return $this->deleteCommon($user, $notrigger);;
|
return $this->deleteCommon($user, $notrigger);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user