プロジェクト

全般

プロフィール

Vote #81319

未完了

Reload whole time entries form on project change

Admin Redmine さんが約2年前に追加. 約2年前に更新.

ステータス:
Confirmed
優先度:
通常
担当者:
-
カテゴリ:
UI_10
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
10
version_id:
32
issue_org_id:
34922
author_id:
3866
assigned_to_id:
0
comments:
3
status_id:
9
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Confirmed]

説明

Currently parts of the time entries form is reloaded when changing the project/project id, see source:/trunk/app/views/timelog/_form.html.erb@20821#L41

This however does not change and restore custom fields for example for time entries.

We think this should be changed to reload the whole time entries form similar to what is done for issue forms, see source:/trunk/app/views/issues/_form.html.erb@20821#L15

Do you think this would be a good addition to Redmine or should this be done another way?


journals

I have confirmed the issue. The steps to reproduce is the follows:

1. Create a project and add a user as a member of the project. Let's say this project as P1 the user's role in the project P1 as R1
2. Create another project and add the user as a member with another role. Let's say this project as P2 and the role as R2
3. Create a Spent time custom field and set the visibility of the custom field to only the role R1
4. Sign in as the user and navigate to the project P1. And then log time
5. Click "Edit" of the newly created time entry. You will see the custom field on the form
6. Change the project from P1 to P2 on the form. The custom field should disappear because the user's role in the project P2 is R2 and the custom field is not visible to the role R2. Actually, it does not disappear
--------------------------------------------------------------------------------
Felix Schäfer wrote:
> We think this should be changed to reload the whole time entries form similar to what is done for issue forms, see source:/trunk/app/views/issues/_form.html.erb@20821#L15
>
> Do you think this would be a good addition to Redmine or should this be done another way?

I created the patch with reference to source:/trunk/app/views/issues/_form.html.erb@20821#L15.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

Admin Redmine さんが約2年前に更新

  • カテゴリUI_10 にセット
  • 対象バージョンCandidate for next major release_32 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0