Giter Site home page Giter Site logo

redmine_unclosed_issues's People

Contributors

smartlime avatar

Stargazers

 avatar

Watchers

 avatar  avatar

redmine_unclosed_issues's Issues

add the new block with 500 error

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'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.