The multiple document action dropdown is now sorted alphabetically.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2018-08-23 03:38:23 -04:00
parent 5174f03994
commit d36faa5b7a
2 changed files with 2 additions and 1 deletions

View File

@@ -105,6 +105,7 @@
document.
- After queuing a chart for update, the view will now redirect
to the same chart.
- The multiple document action dropdown is now sorted alphabetically.
3.0.3 (2018-08-17)
==================

View File

@@ -28,7 +28,7 @@ def get_menus_links(context, names, source=None):
@register.simple_tag(takes_context=True)
def get_multi_item_links_form(context, object_list):
actions = []
for link_set in Menu.get('multi item menu').resolve(context=context, source=object_list[0]):
for link_set in Menu.get('multi item menu').resolve(context=context, source=object_list[0], sort_results=True):
for link in link_set:
actions.append((link.url, link.text))