Do not export non exportable champs on draft procedures

This commit is contained in:
Paul Chavard 2021-03-23 09:55:37 +01:00
parent 93e1852109
commit 84214f4bd4
3 changed files with 33 additions and 16 deletions

View file

@ -93,7 +93,7 @@ class Procedure < ApplicationRecord
def types_de_champ_for_export
if brouillon?
draft_types_de_champ
draft_types_de_champ.reject(&:exclude_from_export?)
else
all_types_de_champ
.uniq