Bug #72959
closedQueryGenerator $conf['comparison'] as integer type
0%
Description
Problem occures when using direct_mailSpecial recipient list / special query / "between"
I'm mot sure if this should be fixed in the core or in direct_mail.
I thing it's a core issue.
direct_mail
Recipient List
special query
typ3 "between"
TYPO3 6.2.nn
AND tx_rsmbsttools_newsletter LIKE '%101%' AND tx_rsmbsttools_newsletter LIKE '%%'
TYPO3 7.6.nn
AND tx_rsmbsttools_newsletter LIKE '%101%' AND tx_rsmbsttools_newsletter LIKE *'%#VALUE1#%'*)
The problem is inside the QueryGenerator.php (TYPO3\CMS\Core\Database\QueryGenerator)
6.2.nn
public function getQuerySingle($conf, $first) { ... if ($conf['comparison'] == 37 || $conf['comparison'] == 36 || $conf['comparison'] *==* 66 || $conf['comparison'] == 67 || $conf['comparison'] == 100 || $conf['comparison'] == 101) {
7.6.nn
public function getQuerySingle($conf, $first){ ... if ($conf['comparison'] === 37 || $conf['comparison'] === 36 || $conf['comparison'] === 66 || $conf['comparison'] === 67 || $conf['comparison'] === 100 || $conf['comparison'] === 101) {
The $conf['comparison'] under 6.7.x will check the type, and the 66 is string-type, so that _$conf['comparison'] === 66 won't match.
The value of $conf['comparison'] is a result from a select list:
<option value="66">contains</option>
So it should be converted to int to let int comparison work.
Updated by Morton Jonuschat almost 9 years ago
- Target version changed from 7.6.3 to Candidate for patchlevel
Updated by Ivan Dharma Kartolo over 8 years ago
- Status changed from New to Closed
I'm afraid this is core function and should be fixed there.
Updated by Ivan Dharma Kartolo over 8 years ago
sorry.. set the wrong relation to 72960 and this one get closed automatically :( I'll write a patch :)
Updated by Ivan Dharma Kartolo over 8 years ago
false alarm. bug is not in the QueryGenerator. This can be closed :)
Updated by Alexander Opitz over 8 years ago
- Target version deleted (
Candidate for patchlevel)