From 10bf7b95d0826787c06e7ac824fd6150aacd0d26 Mon Sep 17 00:00:00 2001 From: Nicolas Bally Date: Thu, 30 May 2019 14:56:13 +0200 Subject: [PATCH] suite --- app/controllers/public/reseauxes_controller.rb | 2 ++ app/views/public/my_account/my_reseauxes.html.haml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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)