fix sorting favorite lists, fixes #1679
This commit is contained in:
parent
19f345b865
commit
fd496dfee0
4 changed files with 11 additions and 4 deletions
|
|
@ -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'):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue