Merge Request #4
New feature: Restore a rejected or finished proposal
Added new button into processed tasks page to allow the admin restore
1 or N proposals to initial status.
In the last commit, was made a refactor to add a relation between tasks
and articles
entities. The article related with a proposal task is disabled when the task returns to their initial status!!
-
I just think some error handling is missing.
We would just check for error in the controller call to the method ProposalTask #undo_flags
The method #undo_flag on ProposalTask isn't being used
-
Hello @abner. I made this changes that you suggested. The method
#undo_flag
was renamed toundo_flags
to remove flag of a specific proposal task or a array of tasks.So, you can use like this:
ProposalDiscussionPlugin::ProposalTask.undo_flags()
ortask.undo_flags()
.The unit tests for both situations was changed/created.
Please, verify if this feature it's ok now! :)