[magnolia-dev] [JIRA] (MGNLWORKFLOW-353) Incorrect displaying of the changes when comparing versions

"JIRA (on behalf of Federico Grilli)" <jira-O8DnXSz/[email protected]> Fri, 23 Jun 2017 10:40:07 +0200 (CEST)
Newsgroups gmane.comp.cms.magnolia.devel
Message-ID <[email protected]>
Federico Grilli updated an issue

Magnolia Workflow Module / https://jira.magnolia-cms.com/browse/MGNLWORKFLOW-353 MGNLWORKFLOW-353

Incorrect displaying of the changes when comparing versions

Change By:
Federico Grilli

*Steps to reproduce:*
# Make some changes to the pages and submit for publish. (Req1)
# Again submit the same page for publish without making any changes. (req2)
# Now make another change on a different component in the same page and submit for approval. (Res 3)
# Check the notifications tab and you can see 3 requests for approval for the same page.
# Now click on Req1 and say show changes.

*Expected:*
The changes made first should only be displayed.

*Actual:*
Changes made as part of third request is highlighted as the changes. So the approver cannot actually know what has been changed in this version and in the next versions.
-----
After a bit of investigation the problem seems to be at {{info.magnolia.module.workflow.action.WorkItemLocalizedDiffAction#getLocation}} #61 et seq. The diff URL is built there always starting from the last version and comparing it with the previous one. No matter how many versions you have in there the last two are compared.

Solution consists in comparing the version created with a given publication request with its previous version, if one exists.

https://jira.magnolia-cms.com/browse/MGNLWORKFLOW-353#add-comment
Add Comment

This message was sent by Atlassian JIRA (v7.2.6#72008-sha1:26175bf)

----------

----------------------------------------------------------------

For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html

Alternatively, use our forums: http://forum.magnolia-cms.com/

To unsubscribe, E-mail to: <[email protected]>

----------------------------------------------------------------
(unnamed) (image/png, 425 B) - not displayed
(unnamed) (image/png, 1.1 KB) - not displayed
(unnamed) (image/png, 2.9 KB) - not displayed