You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When an admin user edits an accepted proposal answer, the system will increment the accepted proposals counter for the proposal authors, even when that proposal was already counted.
To Reproduce
Steps to reproduce the behavior:
Choose an accepted proposal with a real user as author or coauthor.
Go to that user badges page, and check the "accepted proposals" badge.
Go to the proposal admin page.
Click on the answer button
Refresh the user badges page, and check that the "accepted proposals" badge has increased the number of the accepted proposals.
Expected behavior
Editing an answer should not increment the counter of accepted proposals for the users. Also, what should happen if an admin changes a proposal from the state accepted to another state? Should it decrement the counter?
Screenshots
The proposal author badge before editing the proposal answer:
The proposal answer is edited, keeping the accepted state.
The proposal author badge after editing the proposal answer:
Stacktrace
If applicable, add the error stacktrace to help explain your problem.
Extra data (please complete the following information):
Device: Desktop
Device OS: [e.g. iOS8.1, Windows 10]
Browser: [e.g. Chrome, Firefox, Safari]
Decidim Version: develop, but it seems to affect all versions released since the introduction of this badge (New badges #4033)
Describe the bug
When an admin user edits an accepted proposal answer, the system will increment the accepted proposals counter for the proposal authors, even when that proposal was already counted.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Editing an answer should not increment the counter of accepted proposals for the users. Also, what should happen if an admin changes a proposal from the state accepted to another state? Should it decrement the counter?
Screenshots

The proposal author badge before editing the proposal answer:
The proposal answer is edited, keeping the accepted state.

The proposal author badge after editing the proposal answer:

Stacktrace
If applicable, add the error stacktrace to help explain your problem.
Extra data (please complete the following information):
Additional context