deecay / redmine_pivot_table

This Redmine plugin allows you to generate pivot table for issue analysis.
MIT License
52 stars 38 forks source link

Internal Error, ActionView::Template::Error (incompatible with extended_fields) #9

Open ghost opened 8 years ago

ghost commented 8 years ago

I had tried to install this both version in Redmine 2.6.3 with Rails version 3.2.21. But I click the pivot tab, it showd Internal Error. What is wrong?

Best Regards,

Error Message is;

      Rendered plugins/redmine_pivot_table/app/views/pivottables/index.html.erb within layouts/base (283.4ms)
    Completed 500 Internal Server Error in 493.1ms

    ActionView::Template::Error (undefined method `show_value' for #<#<Class:0xb438728c>:0xb4385630>):
        41:
        42: %> { <% @query.available_columns.each_with_index do |column, j| -%><%
        43:
        44:  %>"<%= column.caption -%>":"<% if (text = (column.name == :done_ratio) ? column.value_object(issue).to_s : column_content(column, issue)) -%><%=raw escape_javascript(text.split("\n")[0]) -%><% end -%>"<% if (j < @query.available_columns.size - 1) -%>,<% end -%><% end -%><%
        45:
        46: %> } <% if (i < @issues.size - 1) -%>,<% end -%><% end -%>
        47:
      plugins/extended_fields/lib/extended_queries_helper_patch.rb:27:in `column_content_with_extended'
      plugins/redmine_pivot_table/app/views/pivottables/index.html.erb:44:in `block (2 levels) in _plugins_redmine_pivot_table_app_views_pivottables_index_html_erb__831858732__635665648'
      plugins/redmine_pivot_table/app/views/pivottables/index.html.erb:42:in `each'
      plugins/redmine_pivot_table/app/views/pivottables/index.html.erb:42:in `each_with_index'
      plugins/redmine_pivot_table/app/views/pivottables/index.html.erb:42:in `block in _plugins_redmine_pivot_table_app_views_pivottables_index_html_erb__831858732__635665648'
      plugins/redmine_pivot_table/app/views/pivottables/index.html.erb:40:in `each'
      plugins/redmine_pivot_table/app/views/pivottables/index.html.erb:40:in `each_with_index'
      plugins/redmine_pivot_table/app/views/pivottables/index.html.erb:40:in `_plugins_redmine_pivot_table_app_views_pivottables_index_html_erb__831858732__635665648'
deecay commented 8 years ago

Seems like extended_fields plugin is incompatible. I will look into it but it may take time.

ghost commented 8 years ago

Thank you for your reply. I had removed extended_fields plugin, it was working fine. But I use extended_fields plugin at some my redmine sites. This plugin is very useful. So I hope that both plugin will work together.

Thanks.

deecay commented 8 years ago

I think you will have to wait until extended_fields updates.

Comment in the file below shows that function needs to be replaced, and replacing it seems to allow the two plugins to co-exist.

FIXME needs to be updated to use #format_object

http://subversion.andriylesyuk.com/extended-fields/lib/extended_queries_helper_patch.rb