Project

General

Profile

« Previous | Next » 

Revision 11:c086fd0f57d4

Added by Haru Iida over 9 years ago

fixes #914 Support multiple scm.

View differences:

app/controllers/commit_relation_editor_controller.rb
1 1
# Redmine Commit Relation Editor plugin for Redmine
2
# Copyright (C) 2011  Haruyuki Iida
2
# Copyright (C) 2011-2012  Haruyuki Iida
3 3
#
4 4
# This program is free software; you can redistribute it and/or
5 5
# modify it under the terms of the GNU General Public License
......
37 37
      end
38 38
    end
39 39

  
40
    redirect_to url_for(:controller => 'repositories', :action => 'revision', :id => @project, :rev => @rev)
40
    options = {:controller => 'repositories', :action => 'revision', :id => @project, :rev => @rev}
41
    options[:repository_id] = params[:repository_id] if params[:repository_id].present?
42
    redirect_to url_for(options)
41 43
  end
42 44

  
43 45
  def destroy
......
58 60
      end
59 61
    end
60 62

  
61
    redirect_to url_for(:controller => 'repositories', :action => 'revision', :id => @project, :rev => @rev)
63
    options = {:controller => 'repositories', :action => 'revision', :id => @project, :rev => @rev}
64
    options[:repository_id] = params[:repository_id] if params[:repository_id].present?
65
    redirect_to url_for(options)
62 66
  end
63 67
  
64 68
  private

Also available in: Unified diff