This commit is contained in:
Nicolas Bally 2019-05-30 14:56:13 +02:00
parent 8c96986309
commit 10bf7b95d0
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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)