Project

General

Profile

Actions

Defect #33341

closed

Time entry user is shown twice in the User drop-down when editing spent time

Defect #33341: Time entry user is shown twice in the User drop-down when editing spent time

Added by Thomas Löber over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Time tracking
Target version:
Resolution:
Fixed
Affected version:

Description

Hi,

When editing Spent Time the current time entry user is shown twice in the User drop-down.

This is because the condition to add the current time entry user to the collection is wrong in TimelogHelper#user_collection_for_select_options.

It is:

collection << time_entry.user unless time_entry.user.nil? && !collection.include?(time_entry.user)

But it should be:

collection << time_entry.user if time_entry.user && !collection.include?(time_entry.user)

Best regards,
Thomas


Files


Related issues 1 (0 open — 1 closed)

Related to Redmine - Defect #32973: Editing a time entry for a locked user changes the user to the current userClosedJean-Philippe LangActions

Updated by Go MAEDA over 6 years ago Actions #1

Updated by Go MAEDA over 6 years ago Actions #2

  • Affected version changed from 4.1.0 to 4.1.1

Updated by Go MAEDA over 6 years ago Actions #3

  • Related to Defect #32973: Editing a time entry for a locked user changes the user to the current user added

Updated by Go MAEDA over 6 years ago Actions #4

  • Target version set to 4.1.2

Updated by Go MAEDA over 6 years ago Actions #6

  • Subject changed from When editing Spent Time the current time entry user is shown twice in the User drop-down to Time entry user is shown twice in the User drop-down when editing spent time
  • Status changed from Confirmed to Closed
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

Committed the fix. Thank you.

Actions

Also available in: PDF Atom