Project

General

Profile

Actions

Defect #33550

closed

Per role visibility settings for spent time custom fields is not properly checked

Added by Adrien Crivelli almost 4 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Custom fields
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

The role visibility settings for spent time custom fields introduced by #31859 is completely ignored when editing an issue, eg on /issues/123. So the custom field will incorrectly be shown for any roles.

It will only has an effect when creating/editing a spent time directly, eg on /issues/123/time_entries/new. In this case the custom field will correctly only be shown for selected roles.

I would expect that spent time custom fields are shown/hidden coherently between the two pages.

Custom field configuration

Developer vs Reporter

The developer, on the left, see the custom field as expected.

The reporter, on the right, should not see the custom field, but he incorrectly sees it when editing an issue (bottom right).

This has been reproduced in production on 4.1.0, and also on a brand new, local Redmine installation with default data loaded.

Environment:
  Redmine version                4.1.1.stable
  Ruby version                   2.5.1-p57 (2018-03-29) [x86_64-linux-gnu]
  Rails version                  5.2.4.2
  Environment                    production
  Database adapter               Mysql2
  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
  Mailer delivery                smtp
SCM:
  Git                            2.17.1
  Filesystem                     
Redmine plugins:
  no plugin installed


Files


Related issues

Related to Redmine - Defect #35132: Custum field default value has no effect if field is inaccessibleNew

Actions
Actions

Also available in: Atom PDF