Merge branch 'fix_adv_target_emailing_extrafields_link' of github.com:atm-gauthier/dolibarr into fix_adv_target_emailing_extrafields_link

This commit is contained in:
Gauthier PC portable 024 2021-04-19 09:16:06 +02:00
commit ff8aae1209

View File

@ -643,7 +643,7 @@ class AdvanceTargetingMailing extends CommonObject
} elseif ($extrafields->attributes[$elementtype]['type'][$key] == 'link') {
if ($arrayquery['options_'.$key] > 0){
$sqlwhere[]= " (te.".$key." = ".$arrayquery['options_'.$key].")";
}
}
} else {
if (is_array($arrayquery['options_'.$key])) {
$sqlwhere[]= " (te.".$key." IN ('".implode("','", $arrayquery['options_'.$key])."'))";