smartlime / redmine_unclosed_issues Goto Github PK
View Code? Open in Web Editor NEWRedmine "My Page" plugin to show issues to close bu current user
License: GNU General Public License v2.0
Redmine "My Page" plugin to show issues to close bu current user
License: GNU General Public License v2.0
error log is
Started GET "/my/page" for 192.168.60.238 at 2017-06-03 12:19:40 +0800
Processing by MyController#page as */*
Current user: hui.wang (id=8)
Rendered plugins/redmine_unclosed_issues/app/views/my/blocks/_unclosed_issues.html.erb (78.6ms)
Rendered plugins/redmine_my_page_queries/app/views/my/page.html.erb within layouts/base (85.3ms)
Completed 500 Internal Server Error in 95ms (ActiveRecord: 3.3ms)
ActionView::Template::Error (Mysql2::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':conditions=>{:author_id=>8, :status_id=>3}}) FROM `issues` INNER JOIN `projects' at line 1: SELECT COUNT({:conditions=>{:author_id=>8, :status_id=>3}}) FROM `issues` INNER JOIN `projects` ON `projects`.`id` = `issues`.`project_id` WHERE ((projects.status <> 9 AND EXISTS (SELECT 1 AS one FROM enabled_modules em WHERE em.project_id = projects.id AND em.name='issue_tracking')) OR (projects.status = 1 AND EXISTS (SELECT 1 AS one FROM enabled_modules em WHERE em.project_id = projects.id AND em.name='issue_tracking')) OR (projects.status = 1 AND EXISTS (SELECT 1 AS one FROM enabled_modules em WHERE em.project_id = projects.id AND em.name='issue_tracking')))):
1: <h3><%=l(:label_unclosed_issues)%> (<%= Issue.visible.count(:conditions => { :author_id => User.current.id, :status_id => 3 }) %>)</h3>
2:
3: <% reported_issues = Issue.visible.
4: where(:author_id => User.current.id, :status_id => 3).
plugins/redmine_unclosed_issues/app/views/my/blocks/_unclosed_issues.html.erb:1:in `_d662e294b065c0f8f221c0d5890f6dae'
plugins/redmine_my_page_queries/app/helpers/my_page_queries_helper.rb:33:in `render_block'
plugins/redmine_my_page_queries/app/views/my/page.html.erb:13:in `block in _ec5baa9bf2f89f2b16b33bc8fbcec2c7'
plugins/redmine_my_page_queries/app/views/my/page.html.erb:10:in `each'
plugins/redmine_my_page_queries/app/views/my/page.html.erb:10:in `_ec5baa9bf2f89f2b16b33bc8fbcec2c7'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'
@smartlime ,
Could it config the issue status which to be closed? Thanks.
I just want to define other status to be closed, and I do not want to modified the plugin code. any idea about it?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.