summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/tools
diff options
context:
space:
mode:
authorDavid Beguin <dbe@odoo.com>2020-09-24 09:18:11 +0000
committerDavid Beguin <dbe@odoo.com>2020-09-28 16:34:09 +0000
commit13250dfd0ab140b4e60ec3f30832999a867426fc (patch)
tree77111b3d0594622f5bf5fb94dd995cfe24a9548e /addons/web/static/src/js/tools
parentd92e61e89f468c2db2fbd68b2f0d6b36c77f1065 (diff)
[FIX] survey: ensure to retrieve the participant's answer when restarting
In order to avoid making it possible to follow the same survey multiple times at the same time, a survey cookie is added with the survey token and answer token. When starting the survey, if the cookie contains a valid answer token for that survey token, the survey session is reloaded where the participant left it. When the user finished the survey, the cookie is deleted to allow to retake the survey later, if possible. Note: A participant can still open multiple tabs with the same survey, but it will be linked to the same survey answer. So if the user tries to submit another answer, the late answer will overwrite the previous one. Task ID: 2345468 closes odoo/odoo#58720 X-original-commit: c97c266313aff864f8c397fb1b42f792f9650e5e Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/web/static/src/js/tools')
0 files changed, 0 insertions, 0 deletions