diff options
| author | Xinhui | 2017-03-02 11:19:45 +0100 | 
|---|---|---|
| committer | Xinhui | 2017-03-02 11:19:45 +0100 | 
| commit | 9708ce96fd330ace4869ffe64c29958d9957db15 (patch) | |
| tree | 695a71e5ed84fcdc1b557492eb09a1438139c4ae /app/helpers/newapplication_helper.rb | |
| parent | 3fec7dffc5d02ac10f9a32db2c42207429264cf6 (diff) | |
| download | chouette-core-9708ce96fd330ace4869ffe64c29958d9957db15.tar.bz2 | |
Fix sort of filtered lines on line_referentials#index
Refs #2667
Diffstat (limited to 'app/helpers/newapplication_helper.rb')
| -rw-r--r-- | app/helpers/newapplication_helper.rb | 3 | 
1 files changed, 1 insertions, 2 deletions
| diff --git a/app/helpers/newapplication_helper.rb b/app/helpers/newapplication_helper.rb index 2151f47b2..11c794ea3 100644 --- a/app/helpers/newapplication_helper.rb +++ b/app/helpers/newapplication_helper.rb @@ -161,8 +161,7 @@ module NewapplicationHelper    def sortable_columns collection, key      direction = (key == params[:sort] && params[:direction] == 'desc') ? 'asc' : 'desc' - -    link_to({sort: key, direction: direction}) do +    link_to(params.merge({direction: direction, sort: key})) do        pic1 = content_tag :span, '', class: "fa fa-sort-asc #{(direction == 'desc') ? 'active' : ''}"        pic2 = content_tag :span, '', class: "fa fa-sort-desc #{(direction == 'asc') ? 'active' : ''}" | 
