summaryrefslogtreecommitdiff
path: root/addons/analytic_user_function/analytic_user_function.py
diff options
context:
space:
mode:
authorRichard Mathot <rim@odoo.com>2015-01-15 17:40:30 +0100
committerRichard Mathot <rim@odoo.com>2015-01-16 17:24:14 +0100
commit11f147f2d94c8aff729590183e24337b2c076c86 (patch)
treeb3d30b23363199e059b4f70194e58ca4465855d6 /addons/analytic_user_function/analytic_user_function.py
parent07ccd6c1c76553e1f90c69d5990bbd202cfde15d (diff)
[FIX] survey: prevent pointless AJAX request
Avoid creation of doublon survey_user_input entries when a user loads the landing page of a survey (/survey/start/... route). Due to some strange spec, jQuery.ajax() function called with "undefined" URL will do an extra call to the URL of the webpage where the script lies (http://api.jquery.com/jQuery.ajax/). Now, we check that URL is not "undefined" to avoid those calls. By the way, this problem probably happened in every page that had survey.js in its assets... (correct loading of survey.js is fixed in saas-6 at 4dd5dbb28974b3f0d9cbcc9b502aab2d83b5e6f3, this fix is complementary.) This commit fixes #3032 and closes #3337 #3338 #3092.
Diffstat (limited to 'addons/analytic_user_function/analytic_user_function.py')
0 files changed, 0 insertions, 0 deletions