FIX : test on link type
This commit is contained in:
parent
ff8aae1209
commit
8c428081ab
@ -638,11 +638,11 @@ class AdvanceTargetingMailing extends CommonObject
|
|||||||
}
|
}
|
||||||
} elseif ($extrafields->attributes[$elementtype]['type'][$key] == 'boolean') {
|
} elseif ($extrafields->attributes[$elementtype]['type'][$key] == 'boolean') {
|
||||||
if ($arrayquery['options_'.$key]!=''){
|
if ($arrayquery['options_'.$key]!=''){
|
||||||
$sqlwhere[]= " (te.".$key." = ".((int)$arrayquery['options_'.$key]).")";
|
$sqlwhere[]= " (te.".$key." = ".$arrayquery['options_'.$key].")";
|
||||||
}
|
}
|
||||||
} 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." = ".((int)$arrayquery['options_'.$key]).")";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (is_array($arrayquery['options_'.$key])) {
|
if (is_array($arrayquery['options_'.$key])) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user