Commit 6a910571 authored by Romain Courteaud's avatar Romain Courteaud

Update checked line when sorting the selection.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18915 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 74e40be9
...@@ -475,6 +475,11 @@ class SelectionTool( BaseTool, UniqueObject, SimpleItem ): ...@@ -475,6 +475,11 @@ class SelectionTool( BaseTool, UniqueObject, SimpleItem ):
new_sort_on = [(sort_on,'ascending')] new_sort_on = [(sort_on,'ascending')]
selection.edit(sort_on=new_sort_on) selection.edit(sort_on=new_sort_on)
if REQUEST.form.has_key('listbox_uid') and \
REQUEST.form.has_key('uids'):
self.uncheckAll(selection_name, REQUEST.get('listbox_uid'))
self.checkAll(selection_name, REQUEST.get('uids'))
if REQUEST is not None: if REQUEST is not None:
return self._redirectToOriginalForm(REQUEST=REQUEST, form_id=form_id, return self._redirectToOriginalForm(REQUEST=REQUEST, form_id=form_id,
query_string=query_string, no_reset=True) query_string=query_string, no_reset=True)
......
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