Skip to content
Snippets Groups Projects
Commit d2e3aed0 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
parent b05f4aa7
No related branches found
No related tags found
No related merge requests found
...@@ -936,7 +936,7 @@ ...@@ -936,7 +936,7 @@
#set ($paramPrefix = $NULL) #set ($paramPrefix = $NULL)
#end #end
#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())") #set ($whereSql = "$whereSql and ($filterQuery.trim())")
#foreach ($filterValue in $filterValues) #foreach ($filterValue in $filterValues)
#livetable_addFilterParam($filterValue $matchType $whereParams "${paramPrefix}${foreach.count}") #livetable_addFilterParam($filterValue $matchType $whereParams "${paramPrefix}${foreach.count}")
...@@ -960,7 +960,7 @@ ...@@ -960,7 +960,7 @@
#end #end
## As noted above, we have to use the like operator because the list of values is saved concatenated, so from the ## 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. ## 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())") #set ($whereSql = "${whereSql} and ($filterQuery.trim())")
#foreach ($filterValue in $filterValues) #foreach ($filterValue in $filterValues)
#if ($matchTypes.get($foreach.index) == 'empty') #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