diff options
| author | cedricnjanga | 2018-04-04 14:55:25 -0700 |
|---|---|---|
| committer | GitHub | 2018-04-04 14:55:25 -0700 |
| commit | c327d2ec90851bfe1f81c072ef328bd68ea55f38 (patch) | |
| tree | 89a52107e5fe4bef33fa273fc32240dcc9901986 /app/controllers | |
| parent | f04d4420053dc995bad52b5b87ff7f15e302c2b3 (diff) | |
| parent | 461e1b085e745e819e95649bf3509ca6055ce827 (diff) | |
| download | chouette-core-c327d2ec90851bfe1f81c072ef328bd68ea55f38.tar.bz2 | |
Merge branch 'master' into 6370-translations-26370-translations-2
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/routes_controller.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/routes_controller.rb b/app/controllers/routes_controller.rb index 96a23c938..ac243c8eb 100644 --- a/app/controllers/routes_controller.rb +++ b/app/controllers/routes_controller.rb @@ -63,7 +63,8 @@ class RoutesController < ChouetteController end def duplicate - route = Chouette::Route.find(params[:id]).duplicate + source = Chouette::Route.find(params[:id]) + route = source.duplicate params[:opposite] flash[:notice] = t('routes.duplicate.success') redirect_to referential_line_path(@referential, route.line) end |
