Defect #14450
closed
Assignee field is cleared when validation fails
Added by Martin Studer over 11 years ago.
Updated over 11 years ago.
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
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.
the assignee is cleared when the validation fails
I cannot reproduce. Could you describe the exact conditions/steps in order to reproduce?
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.
Sorry but I can't reproduce with current trunk. Here is what I get, the assignee is preserved after the validation fails:
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.
- Status changed from New to Needs feedback
Right, we make use of the redmine_default_assign plugin. I guess that is causing the issue then.
- 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)
Also available in: Atom
PDF