Hi folks
My query works as required on ordinary field ie art_id but not break field
I am using SEBLOD Break plugin.
The query I am using is this (as output via Joomla! debug), as you can see, the query works
OUTPUT (as seen in Joomla! debug)
Rows returned: 1
SELECT member0.id AS value
FROM omgni_users AS member0
INNER JOIN omgni_map_invoice_student AS map
ON member0.id = map.many_id
INNER JOIN omgni_map_invoice_session AS map2
ON map.one_id = map2.one_id
WHERE map2.many_id = 1100 // Dynamic value: $cck->getValue('art_id')
AND map.many_id = 441 // Dynamic value: $user->id
INPUT (Restriction/4 in Search Item View as SQL Query on Break Plugin)
SELECT member0.id AS value
FROM #__users AS member0
INNER JOIN #__map_invoice_student AS map
ON member0.id = map.many_id
INNER JOIN #__map_invoice_session AS map2
ON map.one_id = map2.one_id
WHERE map.many_id = $user->id
AND map2.many_id = $cck->getValue('art_id')
However....
- No matter what I try it just Breaks (invert is ineffective)...
- If I substitute...
- $cck->getValue('art_id') for 1100 (my test article)
- $user->id for 441 (my test user)
- ..., then it works, if the values are dynamic it seems to not work even though it has the correct values ...
- ... The debug query shows that I am actually retrieving dynamic values, it just does not seem to like them
Any suggestions?