Skip to content

Commit

Permalink
Limit to 10 most recent versions (fixes #2976)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Jun 11, 2018
1 parent e08ac5b commit 3f1175e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG-v3.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- Fixed a bug where the `siteName` config setting wasn’t working as expected when set to an array. ([#2968](https://github.com/craftcms/cms/issues/2968))
- Fixed a bug where it was not possible to order search results by search score, if the element type didn’t specify any sort options.
- Fixed a bug where clicking on “Date Created” and “Date Updated” column headers on element indexes wouldn’t update the sort order. ([#2975](https://github.com/craftcms/cms/issues/2975))
- Fixed a bug where Edit Entry pages were listing more than the 10 most recent versions. ([#2976](https://github.com/craftcms/cms/issues/2976))

## 3.0.10.2 - 2018-06-07

Expand Down
2 changes: 1 addition & 1 deletion src/templates/entries/_revisions.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ <h6>{{ "Drafts"|t('app') }}</h6>
{% endif %}

{% if section.enableVersioning %}
{% set versions = craft.app.entryRevisions.getVersionsByEntryId(entry.id, entry.siteId) %}
{% set versions = craft.app.entryRevisions.getVersionsByEntryId(entry.id, entry.siteId, 10) %}
{% if versions %}
<h6>{{ "Recent Versions"|t('app') }}</h6>
<ul class="padded">
Expand Down

0 comments on commit 3f1175e

Please sign in to comment.