X-Git-Url: https://svn.cri.ensmp.fr/git/Portfolio.git/blobdiff_plain/306427e14c2c27ce070e789bdbc039e6d95a3fdc..eb82d8f9e1a13678be84f554f73595b6c7902591:/skins/portfolio_edit_form.py
diff --git a/skins/portfolio_edit_form.py b/skins/portfolio_edit_form.py
index cb9e93b..ad661d2 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('sorting'), False)
+ if not fg('ajax') :
+ return context.setRedirect(context, 'object/view')
+ else :
+ return ''
return ''
\ No newline at end of file