Merge pull request #3349 from aignatov-bio/ai-sci-5758-small-report-wizard-fixes

Small report wizard fixes [SCI-5758]
This commit is contained in:
Alex Kriuchykhin 2021-05-27 14:28:21 +02:00 committed by GitHub
commit 967ec1fdbf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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>