diff options
| author | Olivier Dony <odo@openerp.com> | 2013-01-30 18:43:34 +0100 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2013-01-30 18:43:34 +0100 |
| commit | b1560fb7882bbebaa0ec6a12fdc7685c5122161f (patch) | |
| tree | 498f8b639b1b9c97da9a42a4b1bc8f091d837b64 /addons/web_analytics/static/src | |
| parent | 7ed95d22247ab7b93278a37cdaa91234b9d12af2 (diff) | |
[FIX] web_analytics: test mock does not have a proper wbeclient instance
As a quick workaround: double-check for the presence
of a client in the openerp instance. Should probably
be replaced by a proper mock in the web tests
bzr revid: odo@openerp.com-20130130174334-mysskhhmvurj64fg
Diffstat (limited to 'addons/web_analytics/static/src')
| -rw-r--r-- | addons/web_analytics/static/src/js/web_analytics.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_analytics/static/src/js/web_analytics.js b/addons/web_analytics/static/src/js/web_analytics.js index d7fa5195f3d..732853f9fd6 100644 --- a/addons/web_analytics/static/src/js/web_analytics.js +++ b/addons/web_analytics/static/src/js/web_analytics.js @@ -280,7 +280,7 @@ openerp.web_analytics = function(instance) { // the call to bind_events() may have been delayed in some embed // cases, and when that happens we can skip the push, as the // proper one will be done when bind_event is eventually called. - if (instance.client.tracker) { + if (instance.client && instance.client.tracker) { instance.client.tracker._push_customvars(); } }); |
