dossier: ensure the dossier groupe_instructeur is always present
Otherwise we loose the link to the dossier's procedure, which is definitely a bad thing.
This commit is contained in:
parent
eb9388d59f
commit
9da4fa9f4d
1 changed files with 1 additions and 0 deletions
|
@ -216,6 +216,7 @@ class Dossier < ApplicationRecord
|
||||||
|
|
||||||
validates :user, presence: true
|
validates :user, presence: true
|
||||||
validates :individual, presence: true, if: -> { procedure.for_individual? }
|
validates :individual, presence: true, if: -> { procedure.for_individual? }
|
||||||
|
validates :groupe_instructeur, presence: true
|
||||||
|
|
||||||
def update_search_terms
|
def update_search_terms
|
||||||
self.search_terms = [
|
self.search_terms = [
|
||||||
|
|
Loading…
Reference in a new issue