mirror of
https://github.com/redmine/redmine.git
synced 2025-11-01 10:56:17 +01:00
remove spaces inside {} of CustomFieldsController
git-svn-id: http://svn.redmine.org/redmine/trunk@20420 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -29,7 +29,7 @@ class CustomFieldsController < ApplicationController
|
||||
def index
|
||||
respond_to do |format|
|
||||
format.html do
|
||||
@custom_fields_by_type = CustomField.all.group_by {|f| f.class.name }
|
||||
@custom_fields_by_type = CustomField.all.group_by {|f| f.class.name}
|
||||
@custom_fields_projects_count =
|
||||
IssueCustomField.where(is_for_all: false).joins(:projects).group(:custom_field_id).count
|
||||
end
|
||||
@@ -70,12 +70,12 @@ class CustomFieldsController < ApplicationController
|
||||
flash[:notice] = l(:notice_successful_update)
|
||||
redirect_back_or_default edit_custom_field_path(@custom_field)
|
||||
end
|
||||
format.js { head 200 }
|
||||
format.js {head 200}
|
||||
end
|
||||
else
|
||||
respond_to do |format|
|
||||
format.html { render :action => 'edit' }
|
||||
format.js { head 422 }
|
||||
format.html {render :action => 'edit'}
|
||||
format.js {head 422}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user