Commit 60ed134e authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_web: Keep meaningfull tickets on top

Sort the resuld to keep some states sorted on top of the listbox. This helps on visualize the problems on a more easily.
parent a6e8b36b
Pipeline #1607 skipped
......@@ -6,7 +6,10 @@ person = portal.ERP5Site_getAuthenticatedMemberPersonValue()
if person:
kw['default_destination_decision_uid'] = person.getUid()
kw['simulation_state'] = "NOT cancelled"
kw['sort_on'] = [('modification_date', 'DESC'),]
kw['sort_on'] = (("catalog.simulation_state='suspended'", 'DESC'),
("catalog.simulation_state='validated'", 'DESC'),
("catalog.simulation_state='confirmed'", 'DESC'),
('modification_date', 'DESC'),)
if not support_in_progress_url:
return portal.portal_catalog(**kw)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment