diff --git a/app/views/custom_fields/_form.html.erb b/app/views/custom_fields/_form.html.erb index e428a27c6..548a81a4f 100644 --- a/app/views/custom_fields/_form.html.erb +++ b/app/views/custom_fields/_form.html.erb @@ -41,6 +41,7 @@ when "IssueCustomField" %> <% if @custom_field.format.searchable_supported %>

<%= f.check_box :searchable %>

<% end %> + <%= call_hook(:"view_custom_fields_form_#{@custom_field.type.to_s.underscore}", :custom_field => @custom_field, :form => f) %> <%= render :partial => 'visibility_by_role_selector' %> @@ -52,6 +53,7 @@ when "IssueCustomField" %> <% if @custom_field.format.is_filter_supported %>

<%= f.check_box :is_filter %>

<% end %> + <%= call_hook(:"view_custom_fields_form_#{@custom_field.type.to_s.underscore}", :custom_field => @custom_field, :form => f) %> <% when "ProjectCustomField" %> @@ -64,6 +66,7 @@ when "IssueCustomField" %> <% if @custom_field.format.is_filter_supported %>

<%= f.check_box :is_filter %>

<% end %> + <%= call_hook(:"view_custom_fields_form_#{@custom_field.type.to_s.underscore}", :custom_field => @custom_field, :form => f) %> <% when "VersionCustomField" %> @@ -72,6 +75,7 @@ when "IssueCustomField" %> <% if @custom_field.format.is_filter_supported %>

<%= f.check_box :is_filter %>

<% end %> + <%= call_hook(:"view_custom_fields_form_#{@custom_field.type.to_s.underscore}", :custom_field => @custom_field, :form => f) %> <% when "GroupCustomField" %> @@ -80,6 +84,7 @@ when "IssueCustomField" %> <% if @custom_field.format.is_filter_supported %>

<%= f.check_box :is_filter %>

<% end %> + <%= call_hook(:"view_custom_fields_form_#{@custom_field.type.to_s.underscore}", :custom_field => @custom_field, :form => f) %> <% when "TimeEntryCustomField" %> @@ -88,15 +93,16 @@ when "IssueCustomField" %> <% if @custom_field.format.is_filter_supported %>

<%= f.check_box :is_filter %>

<% end %> + <%= call_hook(:"view_custom_fields_form_#{@custom_field.type.to_s.underscore}", :custom_field => @custom_field, :form => f) %> <%= render :partial => 'visibility_by_role_selector' %> <% else %>

<%= f.check_box :is_required %>

+ <%= call_hook(:"view_custom_fields_form_#{@custom_field.type.to_s.underscore}", :custom_field => @custom_field, :form => f) %>
<% end %> -<%= call_hook(:"view_custom_fields_form_#{@custom_field.type.to_s.underscore}", :custom_field => @custom_field, :form => f) %> <% if @custom_field.is_a?(IssueCustomField) %>