Project

General

Profile

Feature #2350 ยป add_quickjump_to_changeset_in_search-r2147.diff

Patch created against r2147. - Mischa The Evil, 2008-12-21 14:43

View differences:

app/controllers/search_controller.rb (working copy)
48 48
      return
49 49
    end
50 50
    
51
    # quick jump to a changeset
52
    if @question.match(/^r(\d+)$/) && @project && Repository.find_by_project_id(@project) && Changeset.find_by_revision($1)
53
      redirect_to :controller => "repositories", :action => "revision", :id => @project, :rev => $1
54
      return
55
    end
56
    
51 57
    @object_types = %w(issues news documents changesets wiki_pages messages projects)
52 58
    if projects_to_search.is_a? Project
53 59
      # don't search projects
    (1-1/1)