no select for usager if only one groupe_instructeur
This commit is contained in:
parent
2f573619d6
commit
c6082ded09
2 changed files with 2 additions and 2 deletions
|
@ -614,7 +614,7 @@ class Dossier < ApplicationRecord
|
|||
end
|
||||
|
||||
def show_groupe_instructeur_selector?
|
||||
procedure.routee? && !procedure.feature_enabled?(:procedure_routage_api)
|
||||
procedure.routee? && !procedure.feature_enabled?(:procedure_routage_api) && procedure.groupe_instructeurs.size > 1
|
||||
end
|
||||
|
||||
def assign_to_groupe_instructeur(groupe_instructeur, author = nil)
|
||||
|
|
|
@ -691,7 +691,7 @@ class Procedure < ApplicationRecord
|
|||
end
|
||||
|
||||
def defaut_groupe_instructeur_for_new_dossier
|
||||
if !routee? || feature_enabled?(:procedure_routage_api)
|
||||
if !routee? || feature_enabled?(:procedure_routage_api) || (routee? && self.groupe_instructeurs.size == 1)
|
||||
defaut_groupe_instructeur
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue