@@ -34,6 +34,7 class CustomFieldsController < ApplicationController | |||
|
34 | 34 | |
|
35 | 35 | if request.post? and @custom_field.save |
|
36 | 36 | flash[:notice] = l(:notice_successful_create) |
|
37 | call_hook(:controller_custom_fields_new_after_save, :params => params, :custom_field => @custom_field) | |
|
37 | 38 | redirect_to :action => 'index', :tab => @custom_field.class.name |
|
38 | 39 | end |
|
39 | 40 | @trackers = Tracker.find(:all, :order => 'position') |
@@ -43,6 +44,7 class CustomFieldsController < ApplicationController | |||
|
43 | 44 | @custom_field = CustomField.find(params[:id]) |
|
44 | 45 | if request.post? and @custom_field.update_attributes(params[:custom_field]) |
|
45 | 46 | flash[:notice] = l(:notice_successful_update) |
|
47 | call_hook(:controller_custom_fields_edit_after_save, :params => params, :custom_field => @custom_field) | |
|
46 | 48 | redirect_to :action => 'index', :tab => @custom_field.class.name |
|
47 | 49 | end |
|
48 | 50 | @trackers = Tracker.find(:all, :order => 'position') |
@@ -65,6 +65,7 function toggle_custom_field_format() { | |||
|
65 | 65 | :rows => 15 %> |
|
66 | 66 | <br /><em><%= l(:text_custom_field_possible_values_info) %></em></p> |
|
67 | 67 | <p><%= @custom_field.field_format == 'bool' ? f.check_box(:default_value) : f.text_field(:default_value) %></p> |
|
68 | <%= call_hook(:view_custom_fields_form_upper_box, :custom_field => @custom_field, :form => f) %> | |
|
68 | 69 | </div> |
|
69 | 70 | |
|
70 | 71 | <div class="box"> |
@@ -94,5 +95,6 when "IssueCustomField" %> | |||
|
94 | 95 | <p><%= f.check_box :is_required %></p> |
|
95 | 96 | |
|
96 | 97 | <% end %> |
|
98 | <%= call_hook(:"view_custom_fields_form_#{@custom_field.type.to_s.underscore}", :custom_field => @custom_field, :form => f) %> | |
|
97 | 99 | </div> |
|
98 | 100 | <%= javascript_tag "toggle_custom_field_format();" %> |
@@ -11,5 +11,7 | |||
|
11 | 11 | <p><label for="issue_status_is_default"><%=l(:field_is_default)%></label> |
|
12 | 12 | <%= check_box 'issue_status', 'is_default' %></p> |
|
13 | 13 | |
|
14 | <%= call_hook(:view_issue_statuses_form, :issue_status => @issue_status) %> | |
|
15 | ||
|
14 | 16 | <!--[eoform:issue_status]--> |
|
15 | </div> No newline at end of file | |
|
17 | </div> |
@@ -69,6 +69,8 end %> | |||
|
69 | 69 | |
|
70 | 70 | <%= link_to_attachments @issue %> |
|
71 | 71 | |
|
72 | <%= call_hook(:view_issues_show_description_bottom, :issue => @issue) %> | |
|
73 | ||
|
72 | 74 | <% if authorize_for('issue_relations', 'new') || @issue.relations.any? %> |
|
73 | 75 | <hr /> |
|
74 | 76 | <div id="relations"> |
General Comments 0
You need to be logged in to leave comments.
Login now