プロジェクト

全般

プロフィール

Vote #70573

未完了

Issue view does not show spent time if hours are zero

Admin Redmine さんがほぼ4年前に追加. ほぼ4年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Time tracking_13
対象バージョン:
-
開始日:
2011/08/19
期日:
進捗率:

0%

予定工数:
category_id:
13
version_id:
0
issue_org_id:
9090
author_id:
14613
assigned_to_id:
0
comments:
4
status_id:
1
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
35
ステータス-->[New]

説明

If I add a time entry of 0 hours and nothing else has been logged on an issue spent time is shown as "Spent time: -".
It would be more natural if it showed 0 hours and had the normal link for showing logged time on the issue.


journals

Currently, you can add a spent time with 0 hours which is shown in time_entries#index, but not in the issue page (the defect reported in this ticket).

Because I don't see any real reason to allows spent time with 0 hours, I made a patch that restricts this.
--------------------------------------------------------------------------------
The existing code source:tags/3.3.3/app/models/time_entry.rb#L120 obviously intends not to accept 0. Setting target version to 3.4.0.

Thank you for submitting the fix.
--------------------------------------------------------------------------------
Go MAEDA wrote:
> The existing code source:tags/3.3.3/app/models/time_entry.rb#L120 obviously intends not to accept 0. Setting target version to 3.4.0.

No, this code intends not to accept negative values. Some people might use time entries with 0 hours for specific purpose, I'm not really in favor of removing this possibility. We need more feedback before doing this change.
--------------------------------------------------------------------------------

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


related_issues

duplicates,Closed,26357,Checking time tracking even if no hour spent

Admin Redmine さんがほぼ4年前に更新

  • カテゴリTime tracking_13 にセット

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

いいね!0
いいね!0