Skip to content

Commit

Permalink
Merge pull request #8836 from adrianschroeter/fix_package_undelete
Browse files Browse the repository at this point in the history
[api] fix data inconsistency after package undelete
  • Loading branch information
coolo committed Dec 10, 2019
2 parents 8f4b571 + 101e704 commit ba637af
Show file tree
Hide file tree
Showing 7 changed files with 1,285 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/api/app/controllers/source_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,7 @@ def package_command_undelete
pkg = prj.packages.new(name: params[:package])
pkg.update_from_xml(Xmlhash.parse(Backend::Api::Sources::Package.meta(params[:project], params[:package])))
pkg.store
pkg.sources_changed
end

# FIXME: obsolete this for 3.0
Expand Down
Loading

0 comments on commit ba637af

Please sign in to comment.