dhanasingh / redmine_wktime

ERPmine is an open source free ERP for Service Industries. It runs within Redmine
https://erpmine.org/
Other
120 stars 78 forks source link

time_entries Redmine 500 error #237

Closed LeszekS72 closed 3 years ago

LeszekS72 commented 3 years ago

No access to edit time_entries: error500_e_t

Started GET "/time_entries/4/edit" for 192.168.0.10 at 2021-04-02 12:16:10 +0000 Processing by TimelogController#edit as HTML Parameters: {"id"=>"4"} Current user: admin (id=5) Completed 500 Internal Server Error in 6ms (ActiveRecord: 1.4ms)

NoMethodError (undefined method `id=' for nil:NilClass):

plugins/redmine_wktime/lib/timelogcontroller_patch.rb:495:in find_time_entry' lib/redmine/sudo_mode.rb:65:insudo_mode'

amutha1997 commented 3 years ago

What version of redmine and erpmine are you using?

LeszekS72 commented 3 years ago

Redmine 4.1.1, i tried the two last erpmine version, 4.1 and 4.2

amutha1997 commented 3 years ago

What entry are you trying to edit? expense or material? do you have any time entries in the system? if no, try to add one time entry and see if that solves this issue.

Webinar on ERPmine - Time & Expense , April 28, 3:00 PM IST (GMT+5:30)

Register in advance for this meeting: https://us02web.zoom.us/meeting/register/tZcrcOCvqTouGNALBqMGF1GuxyKYjqAcesyM

After registering, you will receive a confirmation email containing information about joining the meeting.

LeszekS72 commented 3 years ago

I tried editing an expense. You were right, entering the time solved the problem with accessing editing entries. Thank you.

amutha1997 commented 3 years ago

This issue is fixed in 4.3. 4.3 is released, Please take a look.