Project

General

Profile

Actions

Defect #14450

closed

Assignee field is cleared when validation fails

Added by Martin Studer over 11 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Issues
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

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

assignee.png (13.2 KB) assignee.png Jean-Philippe Lang, 2013-08-05 21:28
Actions #1

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.

Actions #2

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?

Actions #3

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.

Actions #4

Updated by Jean-Philippe Lang over 11 years ago

Sorry but I can't reproduce with current trunk. Here is what I get, the assignee is preserved after the validation fails:

Actions #5

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.

Actions #6

Updated by Mischa The Evil over 11 years ago

  • Status changed from New to Needs feedback
Actions #7

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.

Actions #8

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)

Actions

Also available in: Atom PDF