Comments (4)
same here...
from agiledwarf.
Same problem.
from agiledwarf.
Its simple - just apply this patch
--- adburndown_controller.rb.orig
+++ adburndown_controller.rb
@@ -54,11 +54,11 @@ class AdburndownController < ApplicationController
@changes = []
# restcondchanges = ActiveRecord::Base::sanitize_sql(restcondtasks)
restcondchanges = ActiveRecord::Base.send(:sanitize_sql, restcondtasks, '')
- ActiveRecord::Base.connection.select_all("select * from (select old_value as value, journalized_id as issueId, prop_key, DATE(journals.created_on) created_on from `journals` inner join journal_details on (journals.id = journal_id) inner join issues on (issues.id = journalized_id) where journalized_type = 'Issue' and property = 'attr' and (prop_key = 'estimated_hours' or prop_key = 'done_ratio') and #{restcondchanges} order by journals.id desc) a group by `issueId`, created_on, prop_key order by created_on desc").each{|row| @changes << row}
+ ActiveRecord::Base.connection.select_all("select * from (select old_value as value, journalized_id as issueId, prop_key, DATE(journals.created_on) created_on from journals inner join journal_details on (journals.id = journal_id) inner join issues on (issues.id = journalized_id) where journalized_type = 'Issue' and property = 'attr' and (prop_key = 'estimated_hours' or prop_key = 'done_ratio') and #{restcondchanges} order by journals.id desc) a group by issueId, created_on, prop_key, value order by created_on desc").each{|row| @changes << row}
=begin
select * from
(
- select old_value as value, journalized_id as issueId, prop_key, DATE(journals.created_on) created_on from `journals`
+ select old_value as value, journalized_id as issueId, prop_key, DATE(journals.created_on) created_on from journals
inner join journal_details on (journals.id = journal_id)
inner join issues on (issues.id = journalized_id)
where journalized_type = 'Issue'
@@ -66,7 +66,7 @@ class AdburndownController < ApplicationController
and (prop_key = 'estimated_hours' or prop_key = 'done_ratio')
and #{restcondchanges}
order by journals.id desc
- ) a group by `issueId`, created_on, prop_key order by created_on desc
+ ) a group by issueId, created_on, prop_key order by created_on desc
=end
@changes = @changes.to_json
end
Kind regards
Kamil
from agiledwarf.
Worked like a charm! Thanks eximius313
from agiledwarf.
Related Issues (20)
- ruby2/rails3/redmine 2.3 DEPRECATION WARNINGs
- layout fix: adapt column size dependent von number of columns configured
- redmine 2.3 ActiveRecord::StatementInvalid
- Tasks not showing Redmine 1.3.2
- Pg 8.4 support for Run charts HOT 2
- Agile Dwraf config/setup
- Agile Dwarf plugin installation with Redmine 1.x
- Can't set dates for sprints using inline date picker for dd/mm/yy locale
- increasing number of columns in sprint view
- Installing with Bitnami Redmine HOT 1
- Error on issue view after installing AgileDwarf in Redmine 2.4.2 HOT 1
- Reorder menu tabs
- Redmine 3.0 suport HOT 13
- What is the license of this code?
- Internal error HOT 3
- NoMethodError (undefined method `scoped' for #<Class:0x00000008525730>) HOT 1
- AgileDwarf in Redmine 3.3.0
- Plugin Agile install stop emails notifiation.
- migration failed => NoMethodError: undefined method `alias_method_chain'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from agiledwarf.