Skip to content

Commit

Permalink
Sosynpl[premieroctet#153] fixed question creation not receiving annou…
Browse files Browse the repository at this point in the history
…nce ID from params.parent
  • Loading branch information
SeghirOumo committed Jul 26, 2024
1 parent 2e8e51b commit 577f88d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/web/server/plugins/sosynpl/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,10 @@ const preCreate = async ({model, params, user, skip_validation}) => {
if (model == 'recommandation') {
skip_validation=true
}
if (model == 'question' ) {
skip_validation = true
params.announce = params.parent
}
return Promise.resolve({model, params, user, skip_validation})
}

Expand Down

0 comments on commit 577f88d

Please sign in to comment.