diff --git a/app/controllers/public/reseauxes_controller.rb b/app/controllers/public/reseauxes_controller.rb index e5a1c01..add97e4 100755 --- a/app/controllers/public/reseauxes_controller.rb +++ b/app/controllers/public/reseauxes_controller.rb @@ -14,6 +14,8 @@ class Public::ReseauxesController < ApplicationController @reseaux = current_customer.own_reseauxes.find(params[:id]) @reseaux_chief_layout = true #@reseaux = Reseaux.find(params[:id]) + + session[:reseaux_id] =@reseaux.id end diff --git a/app/views/public/my_account/my_reseauxes.html.haml b/app/views/public/my_account/my_reseauxes.html.haml index 9f6aa78..87cf59a 100644 --- a/app/views/public/my_account/my_reseauxes.html.haml +++ b/app/views/public/my_account/my_reseauxes.html.haml @@ -24,7 +24,7 @@ -if reseaux.default_part == 3 -reseaux_path = public_reseaux_products_path(:reseaux_id => reseaux.id) -elsif reseaux.default_part == 2 - -reseaux_path = public_needs_path(:type => 2, :reseaux_id => reseaux.id) + -reseaux_path = public_reseaux_products_path(:type => 2, :reseaux_id => reseaux.id) -else -reseaux_path = public_needs_path(:type => 1, :reseaux_id => reseaux.id)