Commit 27bcd2a0d1fd124e2caa65f65865f745f854f812

Authored by Victor Costa
1 parent 9c26b69b

community_track: fix more link from track list block

The link_to_remote helper added a wrong authenticity token because the
block was cached.
Therefore, change the ajax request method to get and avoid csrf token
check.
plugins/community_track/views/blocks/_track_list_more.html.erb
... ... @@ -6,7 +6,7 @@
6 6 </div>
7 7 <% else %>
8 8 <div class="more">
9   - <%= link_to_remote(_('More'), :url => {:id => block.id, :controller => 'community_track_plugin_public', :action => 'view_tracks', :page => page, :per_page => per_page, :force_same_page => force_same_page}) %>
  9 + <%= link_to_remote(_('More'), :url => {:id => block.id, :controller => 'community_track_plugin_public', :action => 'view_tracks', :page => page, :per_page => per_page, :force_same_page => force_same_page}, :method => :get) %>
10 10 </div>
11 11 <% end %>
12 12 </div>
... ...