プロジェクト

全般

プロフィール

Vote #67176

完了

Initialize TimeEntry attributes with params[:time_entry]

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

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

0%

予定工数:
category_id:
13
version_id:
20
issue_org_id:
5441
author_id:
3753
assigned_to_id:
1
comments:
8
status_id:
5
tracker_id:
3
plus1:
1
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

I've made a one-liner patch to fill the new TimeEntry attributes created in IssuesController#update_issue_from_param with the params[:time_entry].

This allows to pre-fill the spent time field when accessing the issue editing page.

I want to use this feature for my time tracker plugin. When the user stops his time tracker, I want to redirect him to the issue editing page to let him change what he wants (%done ratio for example) and enter a time log comment. However, I need to be able to fill the spent time field for him with the time tracker value.


journals

+1

I valid this patch, it's useful with this plugin: http://github.com/delaitre/redmine_time_tracker
Moreover, some other plugins could use this feature to pre-populate the timesheet part in the edit form.

Somebody in the Redmine team could integrate this patch in the Redmine trunk ?
Thanks.
--------------------------------------------------------------------------------
I still need this patch (1 line!). Is there any chance to get it included?
--------------------------------------------------------------------------------
Could you update the patch for current trunk and include a functional test ?
--------------------------------------------------------------------------------
I've updated the patch according to current github master.
The 'test_get_edit_with_params' functional test has been updated too to check the time_entry params.
--------------------------------------------------------------------------------
I forgot to ask you to execute the updated test as I'm not confident in my redmine installation...
--------------------------------------------------------------------------------
Ok, I finally have a working redmine install for testing purpose. It appears that my previous patch contains a bug in the functional test. I fixed it in this new patch (which should be the last one!).
--------------------------------------------------------------------------------
Any chance to have this included in 1.0.4 or 1.1.0 ?
--------------------------------------------------------------------------------
Patch commited in r4411.
As it's not a fix, it won't be merged in 1.0-stable but in 1.1.
Thanks.
--------------------------------------------------------------------------------

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

  • カテゴリTime tracking_13 にセット
  • 対象バージョン1.1.0_20 にセット

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

いいね!0
いいね!0