Skip to content

Commit

Permalink
[webui] Fix bug, missing templates because need to render the edit pa…
Browse files Browse the repository at this point in the history
…tchinfo action again
  • Loading branch information
Moises Deniz Aleman committed Aug 16, 2016
1 parent 17dd61e commit 389f0c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/api/app/controllers/webui/patchinfo_controller.rb
Expand Up @@ -134,6 +134,7 @@ def save
issues.to_a.each do |issue|
unless IssueTracker.find_by_name(issue[1])
flash[:error] = "Unknown Issue tracker #{issue[1]}"
render action: 'edit_patchinfo', project: @project, package: @package
return
end
# people tend to enter entire cve strings instead of just the name
Expand All @@ -158,6 +159,7 @@ def save
Package.verify_file!(@package, '_patchinfo', xml)
rescue APIException => e
flash[:error] = "patchinfo is invalid: #{e.message}"
render action: 'edit_patchinfo', project: @project, package: @package
return
end

Expand Down

0 comments on commit 389f0c2

Please sign in to comment.