def default_templates_form
all_templates = Internal.permission_templates.selectAllPermissionTemplates
- @permission_templates_options = all_templates.sort_by {|t| t.name}.collect {|t| [t.name, t.key]}
+ @permission_templates_options = all_templates.sort_by {|t| t.name.downcase}.collect {|t| [t.name, t.key]}
@root_qualifiers = get_root_qualifiers
@default_templates = get_default_templates_per_qualifier(@root_qualifiers)
templates_names.each do |template_name|
permission_templates << Internal.permission_templates.selectPermissionTemplate(template_name)
end
- permission_templates.sort_by {|t| t.name}
+ permission_templates.sort_by {|t| t.name.downcase}
end
end
# GET /roles/apply_template_form?projects=<projects>&qualifier=<qualifier>
def apply_template_form
- @permission_templates = Internal.permission_templates.selectAllPermissionTemplates().sort_by {|t| t.name}.collect {|pt| [pt.name, pt.key]}
+ @permission_templates = Internal.permission_templates.selectAllPermissionTemplates().sort_by {|t| t.name.downcase}.collect {|pt| [pt.name, pt.key]}
render :partial => 'apply_template_form', :locals => {:components => params[:projects], :project_name => params[:project_name], :qualifier => params[:qualifier] || 'TRK'}
end