Skip to content

Commit

Permalink
[api] channel definition in the incident source prefered
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Apr 7, 2014
1 parent a277fe8 commit 4f2ddbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/app/helpers/maintenance_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ def get_updateinfo_id(sourcePackage, targetRepo)
if p = sourcePackage.project.find_parent and p.is_maintenance?
projectFilter = p.maintained_projects
end
# prefer a channel in the target project to avoid double hits exceptions
ct = ChannelTarget.find_by_repo(targetRepo, [targetRepo.project]) || ChannelTarget.find_by_repo(targetRepo, projectFilter)
# prefer a channel in the source project to avoid double hits exceptions
ct = ChannelTarget.find_by_repo(targetRepo, [sourcePackage.project]) || ChannelTarget.find_by_repo(targetRepo, projectFilter)
channelTag="" # or strip away a possibly %T in any case
channelTag=ct.tag if ct and ct.tag

Expand Down

0 comments on commit 4f2ddbc

Please sign in to comment.