상세 컨텐츠

본문 제목

[Redmine] redmine_impasse plugin error 처리

Software Engineering

by mobile 2014. 10. 18. 18:56

본문

반응형

Version  : Bitnami Redmine 2.5.2-1

Plugin :  redmine_impasse

[error message]

ActionView::Template::Error (uninitialized constant Redmine::CustomFieldFormat):

    14:   <% (@custom_fields_by_type[tab[:name]] || []).sort.each do |custom_field| -%>

    15:     <tr class="<%= cycle("odd", "even") %>">

    16:       <td><%= link_to h(custom_field.name), { :action => :edit, :id => custom_field } %></td>

    17:       #<td align="center"><%= l(Redmine::CustomFieldFormat.label_for(custom_field.field_format)) %></td>

    18:       <td align="center"><%= l(custom_field.format.label) %></td>

    19:       <td align="center"><%= checked_image custom_field.is_required? %></td>

    20:       <% if tab[:name] == 'IssueCustomField' %>

  app/views/common/_tabs.html.erb:22:in `block in _app_views_common__tabs_html_erb___136287513_51295584'

  app/views/common/_tabs.html.erb:21:in `each'

  app/views/common/_tabs.html.erb:21:in `_app_views_common__tabs_html_erb___136287513_51295584'

  app/helpers/application_helper.rb:318:in `render_tabs'


app\views\impasse_custom_fields


[수정 전 : 17 line]

<td align="center"><%= l(Redmine::CustomFieldFormat.label_for(custom_field.field_format)) %></td>


[수정 후 : 17 line]

<td align="center"><%= l(custom_field.format.label) %></td>



[error message]

ActionView::Template::Error (uninitialized constant Redmine::CustomFieldFormat):

    14:   <% (@custom_fields_by_type[tab[:name]] || []).sort.each do |custom_field| -%>

    15:     <tr class="<%= cycle("odd", "even") %>">

    16:       <td><%= link_to h(custom_field.name), { :action => :edit, :id => custom_field } %></td>

    17:       <td align="center"><%= l(Redmine::CustomFieldFormat.label_for(custom_field.field_format)) %></td>

    18:       <td align="center"><%= checked_image custom_field.is_required? %></td>

    19:       <% if tab[:name] == 'IssueCustomField' %>

    20:       <td align="center"><%= checked_image custom_field.is_for_all? %></td>

  app/views/common/_tabs.html.erb:22:in `block in _app_views_common__tabs_html_erb__1060144979_29680176'

  app/views/common/_tabs.html.erb:21:in `each'

  app/views/common/_tabs.html.erb:21:in `_app_views_common__tabs_html_erb__1060144979_29680176'

  app/helpers/application_helper.rb:318:in `render_tabs'


[수정 : code 추가]

app/views/impasse_settings/_form.html.erb

<% self.class.send(:include, ImpasseSettingsHelper) -%>


반응형

'Software Engineering' 카테고리의 다른 글

[Git]브랜치 생성  (0) 2016.04.24
[Git]통합 브랜치 적용  (0) 2015.06.07
[GitHub]Repository 사용  (0) 2015.06.06
[GitHub]Repository 만들기  (0) 2015.06.06
[GitHub]GitHub 와 msysGit  (0) 2014.10.14

관련글 더보기

댓글 영역