Skip to content
Snippets Groups Projects
Commit 3cfacf8a authored by KHELIFA's avatar KHELIFA
Browse files

Merge branch '2024_rc' into '2024'

2024 rc

See merge request !36
parents c6daf356 d18a48c2
No related branches found
No related tags found
2 merge requests!372024 rc get dol function,!362024 rc
Pipeline #3478 passed
......@@ -3,6 +3,9 @@ Le format du fichier est basé sur [Tenez un ChangeLog](http://keepachangelog.co
## [Non Distribué]
## [14.0.8] - 29-08-2024
- Correction prise en compte de contact avec des parenthèses dans le nom, prenom, poste
## [14.0.7] - 29-08-2024
- Correction compatibilité token obligatoire
......@@ -154,7 +157,8 @@ Le format du fichier est basé sur [Tenez un ChangeLog](http://keepachangelog.co
## [4.0.0] - 08-09-2017
- Version initial.
[Non Distribué]: http://git.open-dsi.fr/dolibarr-extension/extendedemail/compare/14.0.7...HEAD
[Non Distribué]: http://git.open-dsi.fr/dolibarr-extension/extendedemail/compare/14.0.8...HEAD
[14.0.8]: http://git.open-dsi.fr/dolibarr-extension/extendedemail/commits/14.0.8
[14.0.7]: http://git.open-dsi.fr/dolibarr-extension/extendedemail/commits/14.0.7
[14.0.6]: http://git.open-dsi.fr/dolibarr-extension/extendedemail/commits/14.0.6
[14.0.5]: http://git.open-dsi.fr/dolibarr-extension/extendedemail/commits/14.0.5
......
14.0.7
\ No newline at end of file
14.0.8
\ No newline at end of file
......@@ -492,7 +492,14 @@ function extendedemail_reject_enter_key(event)
function extendedemail_get_email_infos(text, type, id, replace_parenthesis)
{
text = text.trim().replace('&lt;', '<').replace('&gt;', '>');
if (!!replace_parenthesis) text = text.replace('(', '<').replace(')', '>');
if (!!replace_parenthesis && text.indexOf('@') != -1 && (text.indexOf('<') == -1 || text.indexOf('>') == -1)) {
let first_pos = text.lastIndexOf('(');
let middle_pos = text.lastIndexOf('@');
let last_pos = text.lastIndexOf(')');
if (first_pos != -1 && first_pos < middle_pos && middle_pos < last_pos) {
text = text.substring(0, first_pos) + '<' + text.substring(first_pos + 1, last_pos) + '>' + text.substring(last_pos + 1);
}
}
if (text.length > 0) {
var match = text.match(extendedemail_regex);
if (match) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment