arkhitech / redmine_leaves

A simple plugin for user leaves management. It allows user to check-in and check-out for attendance marking. Leave is marked for any user that does not check-in by the specified time. Administrator can define leave types via the administrative interface for the plugin
MIT License
15 stars 6 forks source link

Redmine 2.3.3 - error #60

Closed alterdaemon closed 10 years ago

alterdaemon commented 10 years ago

I am getting following errors after installation of the plugin:

True ActiveModel::MissingAttributeError user_time_checks user_time_activity_report missing attribute: lastname admin Admin

/opt/bitnami/apps/redmine/htdocs/plugins/redmine_leaves/app/views/user_time_checks/user_time_activity_report.erb:49:in block (2 levels) in _77f67d1fa6fcee860d1849b40752cce9' /opt/bitnami/apps/redmine/htdocs/plugins/redmine_leaves/app/views/user_time_checks/user_time_activity_report.erb:45:ineach_pair' /opt/bitnami/apps/redmine/htdocs/plugins/redmine_leaves/app/views/user_time_checks/user_time_activity_report.erb:45:in `block in _77f67d1fa6fcee860d1849b40752cce9'

True NoMethodError user_time_checks create_time_entries undefined method `check_in_time' for nil:NilClass admin Admin

/opt/bitnami/apps/redmine/htdocs/plugins/redmine_leaves/app/controllers/user_time_checks_controller.rb:345:in create_time_entries' /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal/implicit_render.rb:4:insend_action' /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/actionpack-3.2.13/lib/abstract_controller/base.rb:167:in `process_action'

hishammalik commented 10 years ago

did you run RAILS_ENV=production rake redmine:plugins:migrate

qamranshahzad commented 10 years ago

this issue is resolved. Please pull the latest code