Patch #2144 ยป ParentRepository.0.7.3.patch
| app/controllers/repositories_controller.rb (working copy) | ||
|---|---|---|
|
|
||
|
def find_repository
|
||
|
@project = Project.find(params[:id])
|
||
|
@repository = @project.repository
|
||
|
if @project.repository.nil?
|
||
|
@repository = Project.find(@project.parent_id).repository
|
||
|
else
|
||
|
@repository = @project.repository
|
||
|
end
|
||
|
render_404 and return false unless @repository
|
||
|
@path = params[:path].join('/') unless params[:path].nil?
|
||
|
@path ||= ''
|
||
| app/models/changeset.rb (working copy) | ||
|---|---|---|
|
action = match[0]
|
||
|
target_issue_ids = match[1].scan(/\d+/)
|
||
|
target_issues = repository.project.issues.find_all_by_id(target_issue_ids)
|
||
|
#Ora i child
|
||
|
Project.find(:all, :conditions => ["parent_id = ?", repository.project.id]).each { |cp|
|
||
|
target_issues = target_issues + cp.issues.find_all_by_id(target_issue_ids)
|
||
|
}
|
||
|
|
||
|
if fix_status && fix_keywords.include?(action.downcase)
|
||
|
# update status of issues
|
||
|
logger.debug "Issues fixed by changeset #{self.revision}: #{issue_ids.join(', ')}." if logger && logger.debug?
|
||