Project

General

Profile

Actions

Defect #44376

open

Cannot deselect current user in multi-select user custom field without also deselecting "<< me >>"

Added by Go MAEDA 2 days ago. Updated about 1 hour ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Custom fields
Target version:
Resolution:
Affected version:

Description

In a user format custom field with multiple values enabled, the select box shows both "<< me >>" option introduced in #31444 and the current user's name as separate options with the same value (the user's id). When the current user is among the stored values, both options appear selected. Deselecting only one has no effect because the other remains selected, so users must ctrl/cmd-click both to actually remove themselves.

Steps to reproduce:
1. Create an issue custom field: format "User", multiple values enabled
2. Set the current user as a value of the field on an issue
3. Open the issue edit form and try to remove yourself by ctrl-clicking your name

After submitting the form, the current user is still saved as a value because the "<< me >>" option remains selected.


Files


Related issues

Related to Redmine - Feature #31444: Add "<< me >>" option to user format issue custom fieldsClosedJean-Philippe LangActions
Actions #1

Updated by Go MAEDA 2 days ago

  • Related to Feature #31444: Add "<< me >>" option to user format issue custom fields added
Actions #2

Updated by Go MAEDA 2 days ago

The attached patch changes UserFormat#possible_values_options as follows, only when the custom field has multiple values enabled:

  • The current user's regular [name, id] entry is removed from the list, so the current user appears only once and can be selected/deselected with a single click
  • The "<< me >>" entry is displayed as "John Smith << me >>" so the current user's name remains visible

Single-value fields are unchanged and keep showing both "<< me >>" and the user's name, consistent with the assignee field.

Actions #3

Updated by Go MAEDA 2 days ago

  • Target version changed from Candidate for next major release to Candidate for next minor release
Actions #4

Updated by Go MAEDA about 1 hour ago

  • Target version changed from Candidate for next minor release to 7.0.2

Setting the target version to 7.0.2.

Actions

Also available in: Atom PDF