fix sorting favorite lists, fixes #1679

This commit is contained in:
j 2013-07-22 06:59:59 +00:00
commit fd496dfee0
4 changed files with 11 additions and 4 deletions

View file

@ -453,6 +453,9 @@ def sortEdits(request):
data = json.loads(request.POST['data'])
position = 0
section = data['section']
section = {
'favorite': 'public'
}.get(section,section)
#ids = list(set(data['ids']))
ids = data['ids']
if section == 'featured' and not request.user.get_profile().capability('canEditFeaturedEdits'):