aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuc Donnet2018-02-02 16:15:53 +0100
committerGitHub2018-02-02 16:15:53 +0100
commita5647d142b4095ad35c46bd7b3c7ca5112155fce (patch)
treecdc413bdefcf23cca37271128153d01e636cdc7a
parent5f240b2ceea25c13b054baaea6aa5cdc982793cf (diff)
parent2ef388ec4aa5ed3bfc4cb53244ae99af6edf2202 (diff)
downloadchouette-core-a5647d142b4095ad35c46bd7b3c7ca5112155fce.tar.bz2
Merge pull request #277 from af83/5830-fix-route-duplication-button
5830 Fix RouteDecorator's duplicate action
-rw-r--r--app/decorators/route_decorator.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/decorators/route_decorator.rb b/app/decorators/route_decorator.rb
index 7e3ea889f..f9870fbbe 100644
--- a/app/decorators/route_decorator.rb
+++ b/app/decorators/route_decorator.rb
@@ -75,6 +75,7 @@ class RouteDecorator < AF83::Decorator
policy: :duplicate
) do |l|
l.content h.t('routes.duplicate.title')
+ l.method :post
l.href do
h.duplicate_referential_line_route_path(
context[:referential],