Skip to content

Commit

Permalink
[frontend] Fix file details link for multibuild packages
Browse files Browse the repository at this point in the history
With 9347214 the binary view got fixed
for multibuild packages by using the using the package (multibuild) name
instead of the package container.

While this fixed the binary view, some of the page that got linked from
there were still not handling multibuild packages.
This commit is fixing the file details link.
  • Loading branch information
bgeuken committed May 3, 2018
1 parent 40b3741 commit 022b9ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/app/controllers/webui/package_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def binary
@filename = File.basename(params[:filename])

begin
@fileinfo = Fileinfo.find(project: @project, package: @package, repository: @repository, arch: @arch,
@fileinfo = Fileinfo.find(project: @project, package: params[:package], repository: @repository, arch: @arch,
filename: @filename, view: 'fileinfo_ext')
rescue ActiveXML::Transport::ForbiddenError, ActiveXML::Transport::Error => e
flash[:error] = "File #{@filename} can not be downloaded from #{@project}: #{e.summary}"
Expand Down

0 comments on commit 022b9ef

Please sign in to comment.