convert resultsets to actual list, to work around some plone breakage
It happens a catalog result announced a slightly (223 != 220) different number of results that what was actually in it, making it be considered as a reduced set by the Batch code, making it non functional. This is probably related to changes in https://dev.plone.org/ticket/11733, or nearby.
This commit is contained in:
parent
b198c057a1
commit
b3b920777e
|
@ -27,7 +27,7 @@
|
|||
|
||||
|
||||
<div tal:define="search_results view/document_search_results;
|
||||
search_batch python:Batch(search_results or [], b_size, int(b_start), orphan=1);"
|
||||
search_batch python:Batch(list(search_results or []), b_size, int(b_start), orphan=1);"
|
||||
tal:condition="python: search_results is not None">
|
||||
|
||||
<div id="resultsbox">
|
||||
|
@ -59,7 +59,7 @@
|
|||
<div tal:replace="structure view/dossier_search_form"/>
|
||||
|
||||
<div tal:define="search_results view/dossier_search_results;
|
||||
search_batch python:Batch(search_results or [], b_size, int(b_start), orphan=1);"
|
||||
search_batch python:Batch(list(search_results or []), b_size, int(b_start), orphan=1);"
|
||||
tal:condition="python: search_results is not None">
|
||||
|
||||
<input name="fieldset.current" type="hidden" value="#fieldset-dossiers"/>
|
||||
|
@ -92,7 +92,7 @@
|
|||
<div tal:replace="structure view/question_search_form"/>
|
||||
|
||||
<div tal:define="search_results view/question_search_results;
|
||||
search_batch python:Batch(search_results or [], b_size, int(b_start), orphan=1);"
|
||||
search_batch python:Batch(list(search_results or []), b_size, int(b_start), orphan=1);"
|
||||
tal:condition="python: search_results is not None">
|
||||
|
||||
<input name="fieldset.current" type="hidden" value="#fieldset-questions"/>
|
||||
|
|
Reference in New Issue