#2041 Custom field changelog does not show previous value
Closed: Fixed Opened by stlaz.

Custom field changelog does not show previous value.

This makes the issue https://pagure.io/pagure/issue/2029 much worse since any user with rights to edit metadata which they can't really edit in the Web UI resets the values accidentally with any change but the previous value is not know anymore after that.


Metadata Update from @lslebodn:
- Issue tagged with: IDM

@stlaz Could you please provide steps to reproduce this issue ?

@akasurde Of course.

Steps to reproduce:
1. Have "ticket" permissions on a project
2. Go to an issue which has some custom fields set
3. Change anything you are allowed to change

Additional info:
Now there's a known bug that as a "ticket" (which is a very bad permission name, btw) you are not allowed to change any custom value and all these will be reset on any change (see https://pagure.io/pagure/issue/2029). However, it'll probably still be possible to reset custom fieds to the original value after the bug's been fixed but the changelog should still reflect that.

If you want to see this in action, see https://pagure.io/freeipa/issue/6346 where there was an unfortunate update done by me (find Metadata Update from @stlaz:).

Pagure actually does display the previous value (when there was one):

Screenshot_from_2017-03-06_16-47-04.png

What about the case of reset to default which is the case in https://pagure.io/freeipa/issue/6346#comment-424642?

hm, you're right

Metadata Update from @pingou:
- Issue assigned to pingou

Commit 84589e7b fixes this issue

Metadata