Permalink
Browse files

[FIW] website_event_track: fix location order

Without this commit, each refresh of the agenda, will randomly show the locs.

-- Fix done in prod for oxp

closes #29300
  • Loading branch information...
JKE-be committed Dec 5, 2018
1 parent ba7454e commit 8a0e42e8f41f323a605d60aabf008711158e7386
Showing with 1 addition and 0 deletions.
  1. +1 −0 addons/website_event_track/controllers/main.py
@@ -64,6 +64,7 @@ def _prepare_calendar(self, event, event_track_ids):
locations[location][-1][3] -= 1
locations[location].append([track, start_date, end_date, 1])
dates[-1][1][location] = locations[location][-1]
locations = collections.OrderedDict(sorted(locations.items(), key=lambda t: t[0].id if t[0] else 0))
return {
'locations': locations,
'dates': dates

1 comment on commit 8a0e42e

@JKE-be

This comment has been minimized.

Contributor

JKE-be commented on 8a0e42e Dec 6, 2018

@JKE-be

You probably need a new keyboard
image

my bad !

Please sign in to comment.