Steps to reproduce :
- define a workflow task with 2 buttons : one to validate (with no other condition) and one to reject with condition which requires to set a comment
- override the _getValidity() function to test something else : for the purpose of the ticket, it returns always false
- start the workflow and click to process the first task
- observe that only the validate button is available ( the reject button is disabled)
- click the validate button
- observe the alert that the _getValidity() function returned false
- observe that now the 2 buttons are active <<<=== that's the bug
Expected behavior: caling the _getValidity() function does not modify the conditions to display the workflow buttons