プロジェクト

全般

プロフィール

Vote #68302

完了

start date being filled with current date even when blank value is submitted

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

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

0%

予定工数:
category_id:
2
version_id:
26
issue_org_id:
6575
author_id:
6054
assigned_to_id:
0
comments:
7
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
24
ステータス-->[Closed]

説明

I'm using redmine 1.0.2 and experiencing a very annoying defect: every time I create a new issue, the start date is filled with the current date even if i leave this field blank.

I know #2269 is not implemented yet, but redmine should respect the blank value when I erase the default suggested value.


journals

Oh, this bug happens even here, I deleted the date when created this issue and it's filled now. :P
--------------------------------------------------------------------------------
I can confirm this issue on trunk at r4215. It seems introduced during the @IssuesController@-refactoring in r3688 followed by r3689.

I was able to fix the issue by applying the following patch:

<pre><code class="diff">
Index: app/controllers/issues_controller.rb
===================================================================
--- app/controllers/issues_controller.rb (revision 4215)
+++ app/controllers/issues_controller.rb (working copy)
@@ -308,7 +308,9 @@
end
end
@issue.author = User.current
- @issue.start_date ||= Date.today
+ if (request.get? || request.xhr?)
+ @issue.start_date ||= Date.today
+ end
@priorities = IssuePriority.all
@allowed_statuses = @issue.new_statuses_allowed_to(User.current, true)
end
</code></pre>

--------------------------------------------------------------------------------
Thanks for the patch, but I decided to apply the #2277 instead. I fixes the problem and makes what my company want.
--------------------------------------------------------------------------------
Fixed in r4378.
--------------------------------------------------------------------------------
Merged in 1.0-stable in r4398.
--------------------------------------------------------------------------------
I am facing this issue in Redmine 2.3x versiom.
--------------------------------------------------------------------------------
Are you sure?
--------------------------------------------------------------------------------

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

  • カテゴリIssues_2 にセット
  • 対象バージョン1.0.4_26 にセット

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

いいね!0
いいね!0