Fix tests

This commit is contained in:
Xavier J 2016-12-22 11:55:24 +01:00
parent 9eb6ed3a7c
commit 02fd5a2939

View file

@ -19,11 +19,13 @@ class Backoffice::DossiersController < Backoffice::DossiersListController
def show
create_dossier_facade params[:id]
@champs_private = @facade.champs_private unless @facade.nil?
unless @facade.nil?
@champs_private = @facade.champs_private
@headers_private = @champs_private.inject([]) do |acc, champ|
acc.push(champ) if champ.type_champ == 'header_section'
acc
@headers_private = @champs_private.inject([]) do |acc, champ|
acc.push(champ) if champ.type_champ == 'header_section'
acc
end
end
end