Prepare to remove dossier procedure_id
This commit is contained in:
parent
4af64d2bc1
commit
c4896b45ad
6 changed files with 4 additions and 55 deletions
|
@ -46,7 +46,7 @@ class Champs::SiretController < ApplicationController
|
|||
@champ = policy_scope(Champ).find(params[:champ_id])
|
||||
@etablissement = @champ&.etablissement
|
||||
end
|
||||
@procedure_id = @champ&.dossier&.procedure_id || 'aperçu'
|
||||
@procedure_id = @champ&.dossier&.procedure&.id || 'aperçu'
|
||||
end
|
||||
|
||||
def find_etablissement_with_siret
|
||||
|
|
|
@ -5,7 +5,7 @@ module Instructeurs
|
|||
@dossiers = DossierSearchService.matching_dossiers_for_instructeur(@search_terms, current_instructeur)
|
||||
@followed_dossiers_id = current_instructeur
|
||||
.followed_dossiers
|
||||
.where(procedure_id: @dossiers.pluck(:procedure_id))
|
||||
.where(groupe_instructeur_id: @dossiers.pluck(:groupe_instructeur_id))
|
||||
.pluck(:id)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue