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

undefined method `num_pages' #79

Open xiaoruiguo opened 6 years ago

xiaoruiguo commented 6 years ago

App 3094 stderr: ActionView::Template::Error (undefined method num_pages' for #<UserTimeCheck::ActiveRecord_Relation:0x0000000a8ec218>): App 3094 stderr: 1: App 3094 stderr: 2: <%=define_grid @time_check_grid, hide_submit_button: true, hide_reset_button: true, hide_csv_button: false do |e| App 3094 stderr: 3: App 3094 stderr: 4: App 3094 stderr: 5: e.column name: l(:field_user_id), html: {style: 'text-align: center'}, App 3094 stderr: plugins/redmine_leaves/app/views/user_time_checks/_time_check_grid.html.erb:2:in_ab40870ad955b71f4a18c15401807ebe' App 3094 stderr: plugins/redmine_workflow_enhancements/lib/workflow_enhancements/patches/action_view_rendering.rb:53:in render_with_workflow_enhancements' App 3094 stderr: plugins/redmine_leaves/app/views/user_time_checks/index.html.erb:27:in_a9f92ec48d1fc1db6370924c1223cfd7' App 3094 stderr: lib/redmine/sudo_mode.rb:63:in `sudo_mode'