##// END OF EJS Templates
fixed bug when, sortables have wrong value
marcink -
r338:1eb2267a default
parent child Browse files
Show More
@@ -39,8 +39,12 b' class HgController(BaseController):'
39 def index(self):
39 def index(self):
40 c.current_sort = request.GET.get('sort', 'name')
40 c.current_sort = request.GET.get('sort', 'name')
41 cs = c.current_sort
41 cs = c.current_sort
42 sortables = ['name', 'description', 'last_change', 'tip', 'contact']
43
44 if cs not in sortables:
45 cs = 'name'
42 c.cs_slug = cs.replace('-', '')
46 c.cs_slug = cs.replace('-', '')
43 sortables = ['name', 'description', 'last_change', 'tip', 'contact']
47
44 cached_repo_list = HgModel().get_repos()
48 cached_repo_list = HgModel().get_repos()
45 if cs and c.cs_slug in sortables:
49 if cs and c.cs_slug in sortables:
46 sort_key = c.cs_slug + '_sort'
50 sort_key = c.cs_slug + '_sort'
General Comments 0
You need to be logged in to leave comments. Login now