Small report wizard fixes [SCI-5758]

This commit is contained in:
aignatov-bio 2021-05-25 13:14:57 +02:00
parent e675e4004e
commit f586865696
2 changed files with 3 additions and 3 deletions

View file

@ -51,8 +51,7 @@ class ReportsController < ApplicationController
# Report grouped by modules
def new
@templates = Extends::REPORT_TEMPLATES
@active_template = @templates.one? ? @templates.keys[0] : nil
@repositories = Repository.accessible_by_teams(current_team).active.select(:id, :name)
@repositories = Repository.accessible_by_teams(current_team).active.select(:id, :name).order(:name)
@report = current_team.reports.new
end
@ -115,7 +114,7 @@ class ReportsController < ApplicationController
@edit = true
@templates = Extends::REPORT_TEMPLATES
@active_template = @report.settings[:template]
@repositories = Repository.accessible_by_teams(current_team).active.select(:id, :name)
@repositories = Repository.accessible_by_teams(current_team).active.select(:id, :name).order(:name)
@report.settings = Report::DEFAULT_SETTINGS if @report.settings.blank?
@project_contents = {

View file

@ -157,6 +157,7 @@
<span class="sci-checkbox-label"></span>
</span>
<%= t("projects.reports.wizard.third_step.results_comments") %>
<div class="divider"></div>
</li>
</ul>
<div class="divider"></div>