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') {
|
||||
if ($arrayquery['options_'.$key]!=''){
|
||||
$sqlwhere[]= " (te.".$key." = ".((int)$arrayquery['options_'.$key]).")";
|
||||
$sqlwhere[]= " (te.".$key." = ".$arrayquery['options_'.$key].")";
|
||||
}
|
||||
} elseif ($extrafields->attributes[$elementtype]['type'][$key] == 'link') {
|
||||
if ($arrayquery['options_'.$key] > 0){
|
||||
$sqlwhere[]= " (te.".$key." = ".$arrayquery['options_'.$key].")";
|
||||
$sqlwhere[]= " (te.".$key." = ".((int)$arrayquery['options_'.$key]).")";
|
||||
}
|
||||
} else {
|
||||
if (is_array($arrayquery['options_'.$key])) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user