Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX EZP-27306: Display modifier of published version in edit view and in version view #1296

Merged

Conversation

jacek-foremski
Copy link

EZP-27306

When an object info shows incorrect "modifier" name (displaying the modifier of the latest version instead, which is a draft created by modifying an object, which means that modifier name always shows the name of the current user).

This bug was introduced by this PR: #1114.

To make it work in edit view and version view, I suggest using published version instead of the latest version to retrieve the name of modifier. It seems logical modifier to me in both situations. We can't use the latest version, because of the reason mentioned above. We also can't use "object.current", because it introduces bug EZP-23672.

I used "foreach" to retrieve published version because I couldn't find any shortcut.

@jacek-foremski jacek-foremski force-pushed the EZP-27306_edit_view_modifier branch from 74e89b7 to d21471d Compare April 28, 2017 14:01
Copy link
Member

@adamwojs adamwojs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I confirm that works 👍

@andrerom andrerom merged commit c1db442 into ezsystems:master Jun 19, 2017
@jacek-foremski jacek-foremski deleted the EZP-27306_edit_view_modifier branch June 20, 2017 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants