Do not export non exportable champs on draft procedures
This commit is contained in:
parent
93e1852109
commit
84214f4bd4
3 changed files with 33 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue