Since Redmine 4.0 was released December 2018, it is reasonable to introduce additional conditions adapting HTML-rendering for recent version of Rails to avoid the following errors:
ActionView::Template::Error (undefined method `render_custom_fields_rows' for #<#<Class:0x0000560fbf24c8c0>:0x0000560fbf2526a8>
Did you mean? render_custom_fields_tabs
render_custom_field_values):
263: <% if Redmine::VERSION.to_s.starts_with?('3.4') %>
264: <%= render_half_width_custom_fields_rows(@issue) %>
265: <% else %>
266: <%= render_custom_fields_rows(@issue) %>
267: <% end %>
268: <%= call_hook(:view_issues_show_details_bottom, :issue => @issue) %>
269: </table>
plugins/mega_calendar/app/views/issues/show.html.erb:266:in `_plugins_mega_calendar_app_views_issues_show_html_erb___3635081213966266842_47312815687500'
app/controllers/issues_controller.rb:107:in `block (2 levels) in show'
app/controllers/issues_controller.rb:100:in `show'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'
Rendering plugins/mega_calendar/app/views/issues/show.html.erb within layouts/base
Rendered issues/_action_menu.html.erb (18.6ms)
Rendered plugins/mega_calendar/app/views/issues/show.html.erb within layouts/base (300.5ms)
Completed 500 Internal Server Error in 599ms (ActiveRecord: 136.6ms)
Since Redmine 4.0 was released December 2018, it is reasonable to introduce additional conditions adapting HTML-rendering for recent version of Rails to avoid the following errors:
and
In the rest the plugin works fine for Redmine 4.0.0 and the branch can be merged to master.