Skip to content

Commit

Permalink
Merge pull request #13971 from eduardoj/fix_1610
Browse files Browse the repository at this point in the history
Fix bogus message '1' when deleting a package
  • Loading branch information
eduardoj committed Mar 13, 2023
2 parents b09dd86 + 16b8229 commit cd8d6dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/api/app/models/package.rb
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,8 @@ def delete_on_backend
if CONFIG['global_write_through'] && !@commit_opts[:no_backend_write]
path = source_path

h = { user: commit_user.login, comment: commit_opts[:comment] }
h = { user: commit_user.login }
h[:comment] = commit_opts[:comment] if commit_opts[:comment]
h[:requestid] = commit_opts[:request].number if commit_opts[:request]
path << Backend::Connection.build_query_from_hash(h, [:user, :comment, :requestid])
begin
Expand Down

0 comments on commit cd8d6dd

Please sign in to comment.