Skip to content

Commit f47b7f7

Browse files
Merge pull request #5900 from Countly/SER-2264-cannot-load-event-data-when-theres-an-escaped-character-in-all-events-list
[SER-2264] Cannot load event data when there's an escaped character in all events list
2 parents 827069e + 678496e commit f47b7f7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## Version xx.xx.xx
22

33
Fixes:
4+
- [core] Fixed a bug causing events to not being loaded when there's an escaped character in the event name
45
- [gridfs] fixes for moving to Promises
56

67
Dependencies:

frontend/express/public/core/events/javascripts/countly.details.models.js

+3
Original file line numberDiff line numberDiff line change
@@ -886,6 +886,9 @@
886886
return countlyAllEvents.service.fetchAllEventsData(context, period)
887887
.then(function(res) {
888888
if (res) {
889+
if (Array.isArray(res.list)) {
890+
res.list = res.list.map(eventName => countlyCommon.unescapeHtml(eventName));
891+
}
889892
context.commit("setAllEventsData", res);
890893
if ((!context.state.selectedEventName) || (res.map && res.map[context.state.selectedEventName] && !res.map[context.state.selectedEventName].is_visible) || (res.list && res.list.indexOf(context.state.selectedEventName) === -1)) {
891894
var appId = countlyCommon.ACTIVE_APP_ID;

0 commit comments

Comments
 (0)