Project

General

Profile

Actions

Defect #12164

closed

Error on updating issue

Added by Ken Ip over 12 years ago. Updated over 12 years ago.

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

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

Ruby 1.9.3-p194 / Redmine 2.0.4 / mysql 5.5 with backlogs and wk_time plugins

On updating one of the older issue this error crops up.

NoMethodError (undefined method `<' for nil:NilClass):  app/models/issue.rb:731:in `block in save_issue_with_child_records'
  app/models/issue.rb:718:in `save_issue_with_child_records'
  app/controllers/issues_controller.rb:182:in `update'

Seems like it happens when trying to run this line:

Redmine::Hook.call_hook(:controller_issues_edit_after_save, { :params => params, :issue => self, :time_entry => @time_entry, :journal => @current_journal})

Any help would be greatly appreciated!

Actions #1

Updated by Etienne Massip over 12 years ago

  • Status changed from New to Closed
  • Resolution set to Invalid

Sorry, you should contact the plugin author or post in Plugins forum, this tracker if for Redmine core only.

Actions #2

Updated by Ken Ip over 12 years ago

I thought this method is in core?

Actions #3

Updated by Mischa The Evil over 12 years ago

Ken Ip wrote:

I thought this method is in core?

That's correct (see source:/trunk/app/models/issue.rb@10671#L920), but the error is triggered by a plugin hooking into the :controller_issues_edit_after_save hook according to the given info.

Actions #4

Updated by Ken Ip over 12 years ago

Actually my mistake - this is happening on the line BEFORE, which is

if @issue.save
. I've also experienced it on create too when calling save. Any idea if this is plugin still? Can't really find where in the before_save that does this..... Appreciated!

Actions #5

Updated by Etienne Massip over 12 years ago

Hard to tell, but looking at source:/tags/2.0.4/app/models/issue.rb#L731 (according to the stack trace) where there's no call to < method, yes, it's likely that the plugin is responsible for this error.

Actions

Also available in: Atom PDF