Project

General

Profile

Actions

Defect #11593

closed

Error 500 on child issue with no start date

Added by Cassiano Monteiro over 12 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Issues
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Cant reproduce
Affected version:

Description

I had one parent issue with 4 subtasks, all of them with start and due dates. After that, I tried to create one more subtask, but with no start date, and I got the error 500. After filling start date, it worked.

Here is the log:

Processing IssuesController#create (for 10.3.14.201 at 2012-08-06 10:53:14) [POST]
  Parameters: {"commit"=>"Create", "project_id"=>"servicos", "action"=>"create", "authenticity_token"=>"FMte7OHKMqFib4UOSGwRvGi3Pi4kkmwunMtCX1R9QO4=", "issue"=>{"start_date"=>"", "custom_field_values"=>{"45"=>"", "46"=>"", "14"=>"", "9"=>"Routine", "42"=>""}, "estimated_hours"=>"5", "parent_issue_id"=>"5055", "priority_id"=>"4", "fixed_version_id"=>"", "done_ratio"=>"0", "assigned_to_id"=>"26", "subject"=>"Conferir Balance Chart da Belavia", "tracker_id"=>"4", "due_date"=>"2012-09-06", "status_id"=>"1", "description"=>""}, "controller"=>"issues", "new_checklist"=>"", "attachments"=>{"1"=>{"description"=>""}}}
Sending email notification to: tatiane.ramos@embraer.com.br

TypeError (expected numeric or date):
  C:/webserver/Ruby/lib/ruby/1.8/date.rb:1252:in `minus_without_duration'
  C:1:in `each'
  C:1:in `__send__'
  C:1:in `each'
  app/models/issue.rb:946:in `recalculate_attributes_for'
  app/models/issue.rb:910:in `update_parent_attributes'
  app/controllers/issues_controller.rb:148:in `create'
  config/initializers/mongrel.rb:62:in `dispatch_cgi'

Rendering C:/webserver/Redmine/public/500.html (500 Internal Server Error)
Actions

Also available in: Atom PDF