Skip to content
Snippets Groups Projects
Commit 64776784 authored by Simon Urli's avatar Simon Urli
Browse files

XWIKI-19120: Hibernate exception when performing LiveTable queries on different list parameters

  * Ensure to not reuse an old velocity parameter for the offset when
    building query params for DBListProperty and StringListProperty

(cherry picked from commit d2e3aed0)
parent 46782247
No related branches found
No related tags found
No related merge requests found
......@@ -936,7 +936,7 @@
#set ($paramPrefix = $NULL)
#end
#end
#set ($filterQuery = "#livetable_getFilterQuery($matchTarget $matchType true $filterValues.size() $paramPrefix)")
#set ($filterQuery = "#livetable_getFilterQuery($matchTarget $matchType true $filterValues.size() $paramPrefix $NULL)")
#set ($whereSql = "$whereSql and ($filterQuery.trim())")
#foreach ($filterValue in $filterValues)
#livetable_addFilterParam($filterValue $matchType $whereParams "${paramPrefix}${foreach.count}")
......@@ -960,7 +960,7 @@
#end
## As noted above, we have to use the like operator because the list of values is saved concatenated, so from the
## point of view of the query the match type is always partial.
#set ($filterQuery = "#livetable_getFilterQuery($matchTarget 'partial' false $filterValues.size() $paramPrefix)")
#set ($filterQuery = "#livetable_getFilterQuery($matchTarget 'partial' false $filterValues.size() $paramPrefix $NULL)")
#set ($whereSql = "${whereSql} and ($filterQuery.trim())")
#foreach ($filterValue in $filterValues)
#if ($matchTypes.get($foreach.index) == 'empty')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment