Skip to content

Commit

Permalink
[webui] fix error message on branch package
Browse files Browse the repository at this point in the history
* target, not source package name was used
  • Loading branch information
adrianschroeter committed Oct 21, 2015
1 parent fa4bf52 commit 37922e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/app/controllers/webui/package_controller.rb
Expand Up @@ -584,7 +584,7 @@ def save_new_link
dirhash = Package.dir_hash(@linked_project, @linked_package)
revision = dirhash['xsrcmd5'] || dirhash['rev']
unless revision
flash[:error] = "Unable to branch package '#{@target_package}', it has no source revision yet"
flash[:error] = "Unable to branch package '#{@linked_package}', it has no source revision yet"
redirect_to :controller => :project, :action => 'new_package_branch', :project => @project and return
end

Expand Down

0 comments on commit 37922e6

Please sign in to comment.