Defect #6575
closedstart date being filled with current date even when blank value is submitted
0%
Description
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.
Updated by Bruno Medeiros about 14 years ago
Oh, this bug happens even here, I deleted the date when created this issue and it's filled now. :P
Updated by Mischa The Evil about 14 years ago
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:
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
Updated by Bruno Medeiros about 14 years ago
Thanks for the patch, but I decided to apply the #2277 instead. I fixes the problem and makes what my company want.
Updated by Jean-Philippe Lang about 14 years ago
- Status changed from New to Resolved
- Target version set to 1.0.4
- Resolution set to Fixed
Fixed in r4378.
Updated by Jean-Philippe Lang about 14 years ago
- Status changed from Resolved to Closed
Merged in 1.0-stable in r4398.
Updated by Raghu GS over 11 years ago
I am facing this issue in Redmine 2.3x versiom.