This commit is contained in:
Laurent Destailleur 2021-04-16 20:43:04 +02:00
parent f061a3b8f7
commit 4bc0c5b0b6

View File

@ -614,7 +614,7 @@ 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." = ".$arrayquery['options_'.$key].")"; $sqlwhere[] = " (te.".$key." = ".((int) $arrayquery['options_'.$key]).")";
} }
} else { } else {
if (is_array($arrayquery['options_'.$key])) { if (is_array($arrayquery['options_'.$key])) {