Add a code comment

[MAILPOET-3220]
This commit is contained in:
Pavel Dohnal
2021-05-17 10:04:01 +02:00
committed by Veljko V
parent 42ada2df95
commit 0a1fc128b7

View File

@ -92,6 +92,8 @@ class MailPoetCustomFields implements Filter {
} elseif ($operator === 'after') {
$queryBuilder->andWhere("subscribers_custom_field.value > $valueParam");
} else {
// we always save full date in the database: 2018-03-01 00:00:00
// so this works even for year_month where we save the first day of the month
$queryBuilder->andWhere("subscribers_custom_field.value = $valueParam");
}
return $queryBuilder;