A
A
Albert Tobacco2015-05-15 12:06:52
Ruby on Rails
Albert Tobacco, 2015-05-15 12:06:52

Error after a repeated post of time in the task?

Haven't worked with rails before, any help would be very helpful.
I go to the /issue/43434 page and make a time post, everything goes well.
When I do it a second time, I get an error.
Error following
There is a class

module TimeTracker
  module TimeEntryPatch

after_destroy :update_issue_history

def update_issue_history
        self.issue.check_history_entries
      end
end

Accordingly, self.issue refers to the issue model, which does not have a check_history_entries method.
Tried to remove this after_destroy but then another error falls out.
What confuses me is that once everything works out fine, but in order to post again, it's time to crash the server and start it all over again.
As I understand it, this readmine was sawed by various people who did not know Rails. Therefore, I doubt that someone can give a direct answer to my question, but I hope for at least some direction in finding a solution.
Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
Jeiwan, 2015-05-15
@Jeiwan

I did not work with Redmine, but here we need to find out why there is no check_history_entries method for the second time. Most likely, there is a method, but there is no issue itself. The error, wangyu, is this: undefined method check_history_entries for nil: NilClass.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question