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

Problem with Billing/Contracts tab #220

Closed LorneMalvo77 closed 3 years ago

LorneMalvo77 commented 3 years ago

Hi! I am getting internal error trying to access Billing/Contracts tab. I am using Redmine 4.1.1 with wktime 4.0.4 on Ubuntu 18.04. This is what I found in the log:

Completed 500 Internal Server Error in 41ms (ActiveRecord: 7.9ms)

ActionView::Template::Error (undefined method `name' for nil:NilClass): 17: 18: <%=h entry.contract_number %> 19: <%=h entry.parent_type == 'WkAccount' ? 'Account' : 'Contact' %> 20: <%=h entry.parent.name %> 21: <%=h entry.project.blank? ? "" : entry.project.name %> $ 22: <%=h entry.start_date %> 23: <%=h entry.end_date %>

Can you guide me what can cause this issue? Thanks in advance.

amutha1997 commented 3 years ago

Thanks for using erpmine, this seems to be a bug we will fix it in the next release, in the mean time, can you replace this file /plugins/redmine_wktime/app/views/wkcontract with the attached file and let us know if it works for you. _contract_list.html.zip

LorneMalvo77 commented 3 years ago

Works great! Thank you for the answer and for your effort!