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:
commit
ff8aae1209
@ -643,7 +643,7 @@ class AdvanceTargetingMailing extends CommonObject
|
|||||||
} elseif ($extrafields->attributes[$elementtype]['type'][$key] == 'link') {
|
} elseif ($extrafields->attributes[$elementtype]['type'][$key] == 'link') {
|
||||||
if ($arrayquery['options_'.$key] > 0){
|
if ($arrayquery['options_'.$key] > 0){
|
||||||
$sqlwhere[]= " (te.".$key." = ".$arrayquery['options_'.$key].")";
|
$sqlwhere[]= " (te.".$key." = ".$arrayquery['options_'.$key].")";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (is_array($arrayquery['options_'.$key])) {
|
if (is_array($arrayquery['options_'.$key])) {
|
||||||
$sqlwhere[]= " (te.".$key." IN ('".implode("','", $arrayquery['options_'.$key])."'))";
|
$sqlwhere[]= " (te.".$key." IN ('".implode("','", $arrayquery['options_'.$key])."'))";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user