Defect #14450
closedAssignee field is cleared when validation fails
0%
Description
When creating a new issue and choosing an assignee but not choosing other mandatory fields, the assignee is cleared when the validation fails. This causes issues to be assigned to nobody after having entered the missing details but forgetting to fix the assignee.
Files
Updated by Martin Studer over 11 years ago
As a workaround, we also tried to make the "Assignee" field mandatory/required. But that didn't seem to work either: there is no red star appearing, most likely indicating the field is not actually recognized as mandatory.
Updated by Jean-Philippe Lang over 11 years ago
the assignee is cleared when the validation fails
I cannot reproduce. Could you describe the exact conditions/steps in order to reproduce?
Updated by Martin Studer over 11 years ago
We use custom fields which are defined to be mandatory. The following steps reproduce the problem:
- Create a new issue and fill in all details except for a mandatory custom field (in our case a dropdown which still says "--- Please select ---")
- Choose create
As a result, you will get a validation error saying "<Field> can't be blank". In addition, the "Assignee" field will be cleared (set to blank) or to the default assignee if one is set.
Updated by Jean-Philippe Lang over 11 years ago
- File assignee.png assignee.png added
- Resolution set to Cant reproduce
Sorry but I can't reproduce with current trunk. Here is what I get, the assignee is preserved after the validation fails:
Updated by Mischa The Evil over 11 years ago
I can't reproduce it either on 2.3.1.stable.11915 (m.redmine.org). The behavior is the same as described by Jean-Philippe; the assignee is preserved after the validation error.
Do you have any plugins installed?
Martin Studer wrote:
[...] or to the default assignee if one is set.
With that you mean default assignees for issue categories? Otherwise you are using a plugin which probably also causes this issue.
Updated by Mischa The Evil over 11 years ago
- Status changed from New to Needs feedback
Updated by Martin Studer over 11 years ago
Right, we make use of the redmine_default_assign plugin. I guess that is causing the issue then.
Updated by Mischa The Evil over 11 years ago
- Status changed from Needs feedback to Closed
- Resolution changed from Cant reproduce to Invalid
Martin Studer wrote:
I guess that is causing the issue then.
Try updating the plugin (there has been some changes recently; at least in https://github.com/giddie/redmine_default_assign) or report the issue to the author of the plugin version you are using.
(Plugin issues are not tracked here)