X-Git-Url: https://scm.cri.mines-paristech.fr/git/Portfolio.git/blobdiff_plain/cae5c6e0cfbb0fcb3181a95f83c839e8a30f146e..42f8aecd3f2b63a3929bb3a0baf420c6bd47b05f:/skins/portfolio_edit_form.py?ds=inline
diff --git a/skins/portfolio_edit_form.py b/skins/portfolio_edit_form.py
index cb9e93b..da34aa4 100644
--- a/skins/portfolio_edit_form.py
+++ b/skins/portfolio_edit_form.py
@@ -27,4 +27,10 @@ if fg('delete.x') or form.has_key('delete') :
else :
return '%s' % msg
+if fg('set_sorting') :
+ context.setDefaultSorting(fg('sort_on'), False)
+ if not fg('ajax') :
+ return context.setRedirect(context, 'object/view')
+ else :
+ return ''
return ''
\ No newline at end of file