Merge branch 'main' of github.com:betagouv/demarches-simplifiees.fr into instructeur-invitation-include-typo-suggestion-ldu
This commit is contained in:
commit
42633c0012
138 changed files with 2056 additions and 3526 deletions
|
@ -86,9 +86,9 @@ module Instructeurs
|
|||
end
|
||||
|
||||
def send_to_instructeurs
|
||||
recipients = params['recipients'].presence || [].to_json
|
||||
recipients = params['recipients'].presence || []
|
||||
# instructeurs are scoped by groupe_instructeur to avoid enumeration
|
||||
recipients = dossier.groupe_instructeur.instructeurs.where(id: JSON.parse(recipients))
|
||||
recipients = dossier.groupe_instructeur.instructeurs.where(id: recipients)
|
||||
|
||||
if recipients.present?
|
||||
recipients.each do |recipient|
|
||||
|
@ -401,6 +401,7 @@ module Instructeurs
|
|||
:value,
|
||||
:value_other,
|
||||
:external_id,
|
||||
:code,
|
||||
:primary_value,
|
||||
:secondary_value,
|
||||
:numero_allocataire,
|
||||
|
|
|
@ -73,7 +73,6 @@ module Instructeurs
|
|||
|
||||
@current_filters = current_filters
|
||||
@displayable_fields_for_select, @displayable_fields_selected = procedure_presentation.displayable_fields_for_select
|
||||
@filterable_fields_for_select = procedure_presentation.filterable_fields_options
|
||||
@counts = current_instructeur
|
||||
.dossiers_count_summary(groupe_instructeur_ids)
|
||||
.symbolize_keys
|
||||
|
@ -135,8 +134,8 @@ module Instructeurs
|
|||
end
|
||||
|
||||
def update_displayed_fields
|
||||
values = params['values'].presence || [].to_json
|
||||
procedure_presentation.update_displayed_fields(JSON.parse(values))
|
||||
values = params['values'].presence || []
|
||||
procedure_presentation.update_displayed_fields(values)
|
||||
|
||||
redirect_back(fallback_location: instructeur_procedure_url(procedure))
|
||||
end
|
||||
|
@ -248,7 +247,9 @@ module Instructeurs
|
|||
@export_templates = current_instructeur.export_templates_for(@procedure).includes(:groupe_instructeur)
|
||||
cookies.encrypted[cookies_export_key] = {
|
||||
value: DateTime.current,
|
||||
expires: Export::MAX_DUREE_GENERATION + Export::MAX_DUREE_CONSERVATION_EXPORT
|
||||
expires: Export::MAX_DUREE_GENERATION + Export::MAX_DUREE_CONSERVATION_EXPORT,
|
||||
httponly: true,
|
||||
secure: Rails.env.production?
|
||||
}
|
||||
|
||||
respond_to do |format|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue