# Bug OP-15284 - Wiki: history compares only with most recent version and ignores previous selection

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-15284

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 14.4.0 |
| Observed in versions | 14.1.0 |
| Sprint | 14.4.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 14.1.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

*Please write down the steps to reproduce. Try to write down all necessary preconditions (what permissions do you have, are other users involved?). Example:*

1.  Login as a user who has access to a project with a wiki page

2.  Navigate to a wiki and edit a page in a way that you have at least 3 versions to select for a comparison

3.  Click on More-\> History and select two older versions to compare - spare out the most recent version. Example:
    
    <img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/110349/content">

4.  Click on *view differences*

### What is the buggy behavior?

*Please describe the bug in as much detail as possible. Example:*

  - It will always compare the oldest selected and the newest available version (above = 1 and 3), regardless what you had selected upfront

### What is the expected behavior?

*Describe how the application should behave like. Example:*

1.  That it compares the selected versions

### Screenshots and other files

*see above*

### Environment information

*Please check and fill out the following details to help us identify in what versions and distributions of OpenProject the error occurs*

**OpenProject installation type**

- [x] Hosted cloud edition (14.2)

- [ ] Packaged installation
  
    - What distribution?

- [x] Docker All-in-one container (14.1)

- [x] Docker-compose installation

- [ ] Other (please specify)

**OpenProject version**

*If you're not running on the cloud edition, please specify the version of OpenProject you're running. Example: v12.1.5*

**Browser**

- [ ] Chrome
- [x] Firefox
- [ ] Safari
- [ ] Mobile Safari
- [ ] Other (please specify)

**Language**

*EN/DE*
