Expose draft_revision types_de_champ to editor
This commit is contained in:
parent
1fca481c6e
commit
a6eef6fb19
1 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ module ProcedureHelper
|
|||
{
|
||||
isAnnotation: false,
|
||||
typeDeChampsTypes: TypeDeChamp.type_de_champ_types_for(procedure, current_user),
|
||||
typeDeChamps: procedure.types_de_champ.as_json_for_editor,
|
||||
typeDeChamps: (procedure.draft_revision ? procedure.draft_revision : procedure).types_de_champ.as_json_for_editor,
|
||||
baseUrl: admin_procedure_types_de_champ_path(procedure),
|
||||
directUploadUrl: rails_direct_uploads_url
|
||||
}
|
||||
|
@ -32,7 +32,7 @@ module ProcedureHelper
|
|||
{
|
||||
isAnnotation: true,
|
||||
typeDeChampsTypes: TypeDeChamp.type_de_champ_types_for(procedure, current_user),
|
||||
typeDeChamps: procedure.types_de_champ_private.as_json_for_editor,
|
||||
typeDeChamps: (procedure.draft_revision ? procedure.draft_revision : procedure).types_de_champ_private.as_json_for_editor,
|
||||
baseUrl: admin_procedure_types_de_champ_path(procedure),
|
||||
directUploadUrl: rails_direct_uploads_url
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue