//
// PROFILES
//
- // search profile from profile id
+ // startup synchronisation
// delete profile from profile id (Delete alerts, activeRules, activeRuleParams, activeRuleNotes, Projects)
// copy profile
// export profile from profile id
// export profile from profile id and plugin key
// restore profile
+ // profiles comparison
//
// INHERITANCE
// get inheritance of profile id
@project = get_current_project(project_id)
@snapshot = @project.last_snapshot
call_backend do
- @project_quality_profiles = Internal.quality_profiles.profiles(project_id.to_i).to_a
+ @project_quality_profiles = Internal.quality_profiles.profiles(@project.id.to_i).to_a
@all_quality_profiles = Internal.quality_profiles.allProfiles().to_a
end
end
profiles = Api::Utils.insensitive_sort(@all_quality_profiles.select {|profile| profile.language == language.getKey()}) { |profile| profile.name }
profiles.each do |profile|
%>
- <option value="<%= profile.id -%>" <%= "selected='selected'" if selected_profile && selected_profile.id==profile.id -%>><%= h profile.name -%></option>
+ <option value="<%= profile.id -%>" <%= "selected='selected'" if selected_profile && (selected_profile.id == profile.id) -%>><%= h profile.name -%></option>
<% end %>
</optgroup>
</select>