restore_hook.diff

Marius BALTEANU, 2019-08-17 11:52

Download (2.69 KB)

View differences:

app/views/custom_fields/_form.html.erb
41 41
      <% if @custom_field.format.searchable_supported %>
42 42
      <p><%= f.check_box :searchable %></p>
43 43
      <% end %>
44
      <%= call_hook(:"view_custom_fields_form_#{@custom_field.type.to_s.underscore}", :custom_field => @custom_field, :form => f) %>
44 45
    </div>
45 46
    <%= render :partial => 'visibility_by_role_selector' %>
46 47

  
......
52 53
      <% if @custom_field.format.is_filter_supported %>
53 54
      <p><%= f.check_box :is_filter %></p>
54 55
      <% end %>
56
      <%= call_hook(:"view_custom_fields_form_#{@custom_field.type.to_s.underscore}", :custom_field => @custom_field, :form => f) %>
55 57
    </div>
56 58

  
57 59
<% when "ProjectCustomField" %>
......
64 66
      <% if @custom_field.format.is_filter_supported %>
65 67
      <p><%= f.check_box :is_filter %></p>
66 68
      <% end %>
69
      <%= call_hook(:"view_custom_fields_form_#{@custom_field.type.to_s.underscore}", :custom_field => @custom_field, :form => f) %>
67 70
    </div>
68 71

  
69 72
<% when "VersionCustomField" %>
......
72 75
      <% if @custom_field.format.is_filter_supported %>
73 76
      <p><%= f.check_box :is_filter %></p>
74 77
      <% end %>
78
      <%= call_hook(:"view_custom_fields_form_#{@custom_field.type.to_s.underscore}", :custom_field => @custom_field, :form => f) %>
75 79
    </div>
76 80

  
77 81
<% when "GroupCustomField" %>
......
80 84
      <% if @custom_field.format.is_filter_supported %>
81 85
      <p><%= f.check_box :is_filter %></p>
82 86
      <% end %>
87
      <%= call_hook(:"view_custom_fields_form_#{@custom_field.type.to_s.underscore}", :custom_field => @custom_field, :form => f) %>
83 88
    </div>
84 89

  
85 90
<% when "TimeEntryCustomField" %>
......
88 93
      <% if @custom_field.format.is_filter_supported %>
89 94
      <p><%= f.check_box :is_filter %></p>
90 95
      <% end %>
96
      <%= call_hook(:"view_custom_fields_form_#{@custom_field.type.to_s.underscore}", :custom_field => @custom_field, :form => f) %>
91 97
    </div>
92 98
    <%= render :partial => 'visibility_by_role_selector' %>
93 99

  
94 100
<% else %>
95 101
  <div class="box tabular">
96 102
    <p><%= f.check_box :is_required %></p>
103
    <%= call_hook(:"view_custom_fields_form_#{@custom_field.type.to_s.underscore}", :custom_field => @custom_field, :form => f) %>
97 104
  </div>
98 105
<% end %>
99
<%= call_hook(:"view_custom_fields_form_#{@custom_field.type.to_s.underscore}", :custom_field => @custom_field, :form => f) %>
100 106

  
101 107
<% if @custom_field.is_a?(IssueCustomField) %>
102 108