Skip to content

Commit

Permalink
Merge pull request #561 from plone/fix-batch-doing-search-twice
Browse files Browse the repository at this point in the history
Avoid doing the search twice in listings by reusing the batch variable
  • Loading branch information
vincentfretin authored Jul 8, 2020
2 parents afd2d69 + 0feaa8a commit 3a7ea8c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions news/560.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Avoid doing the search twice in listings by reusing the batch variable.
[vincentfretin]
2 changes: 1 addition & 1 deletion plone/app/contenttypes/browser/templates/listing.pt
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@

<metal:empty metal:define-slot="no_items_in_listing">
<p class="discreet"
tal:condition="not: view/batch"
tal:condition="not: batch"
tal:content="view/no_items_message">
There are currently no items in this folder.
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@

<metal:empty metal:define-slot="no_items_in_listing">
<p class="discreet"
tal:condition="not: view/batch"
tal:condition="not: batch"
tal:content="view/no_items_message">
There are currently no items in this folder.
</p>
Expand Down

0 comments on commit 3a7ea8c

Please sign in to comment.