diff options
| author | David Beguin <dbe@odoo.com> | 2019-09-24 12:39:49 +0000 |
|---|---|---|
| committer | David Beguin <dbe@odoo.com> | 2019-09-24 13:25:50 +0000 |
| commit | 4a37beeff641f6cf9206be80c0aabd7e7b9f6152 (patch) | |
| tree | 8536a657df553b6eb96d7a16f105a8e54182fd9a /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 33f5bbc7d0808ac61ddd2432aded7cbf66a34e50 (diff) | |
[FIX] website_livechat : fix history in discuss visitor banner
Adding a string element to a list with += is not adding the element to the list
but is instead adding every single character of the string as an element to the list.
Building a string using a join method was resulting to an recent history displayed like
H > O > M > E > ( > 8 > : > 4 > 2 > )
--> Should be : HOME (8:42) > Contact Us (8:45)
Apart from that, since the tracking is now ordered by visit_datetime DESC,
to have a chronological order, we need to reverse the list of last visited pages
to have something like :
Home (12:43) > About us (12:45) > Contact Us (12:52)
instead of :
Contact Us (12:52) > About us (12:45) > Home (12:43)
Task ID: 2076190
PR #37340
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
