Skip to content

Commit

Permalink
update vocabularies sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
luca-bellenghi committed Oct 14, 2024
1 parent 449f720 commit f1c4f86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Changelog

- Avoid acquisition problem in *onModify* event handler: now try to reindex children only if context is folderish.
[cekk]
- Add sort_on sortable_title to event_location, uo_location, ufficio_responsabile vocabularies
[lucabel]

6.2.19 (2024-09-23)
-------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def __call__(self, registry=None):
if self.catalog is None:
return SimpleVocabulary([])
values = self.get_all_index_values()
brains = self.catalog(UID=values)
brains = self.catalog(UID=values, sort_on="sortable_title")
terms = []
for brain in brains:
terms.append(SimpleTerm(brain.UID, brain.UID, safe_text(brain.Title)))
Expand Down

0 comments on commit f1c4f86

Please sign in to comment.