Fix bug @liste sélection in DossierListGestionnaireService

This commit is contained in:
Xavier J 2017-01-09 12:26:41 +01:00
parent 32378405ed
commit 29c7c8f498

View file

@ -1,7 +1,7 @@
class DossiersListGestionnaireService class DossiersListGestionnaireService
def initialize current_devise_profil, liste, procedure = nil def initialize current_devise_profil, liste, procedure = nil
@current_devise_profil = current_devise_profil @current_devise_profil = current_devise_profil
@liste = liste @liste = (DossiersListGestionnaireService.dossiers_liste_libelle.include?(liste) ? liste : 'all_state')
@procedure = procedure @procedure = procedure
end end