diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_configureSortOn.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_configureSortOn.xml
index 52e742cb6f6169cb7765663f91138f9d2b78a4c7..0de3de5038f0f42b18a28e1bd8cc03093041cd73 100644
--- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_configureSortOn.xml
+++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_configureSortOn.xml
@@ -3,11 +3,8 @@
   <record id="1" aka="AAAAAAAAAAE=">
     <pickle>
       <tuple>
-        <tuple>
-          <string>Products.PythonScripts.PythonScript</string>
-          <string>PythonScript</string>
-        </tuple>
-        <none/>
+        <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
+        <tuple/>
       </tuple>
     </pickle>
     <pickle>
@@ -76,6 +73,7 @@ from Products.Formulator.Errors import ValidationError, FormValidationError\n
 \n
 request = context.REQUEST\n
 field_sort_type = request.form.get(\'field_sort_type\', None)\n
+form = context.Folder_viewSortOnDialog\n
 \n
 try:\n
   # No validation for now\n
@@ -156,15 +154,16 @@ request[ \'RESPONSE\' ].redirect( redirect_url )\n
                             <string>request</string>
                             <string>None</string>
                             <string>field_sort_type</string>
+                            <string>form</string>
                             <string>sort_on</string>
                             <string>i</string>
                             <string>_getiter_</string>
                             <string>k</string>
                             <string>_getitem_</string>
                             <string>v</string>
+                            <string>_inplacevar_</string>
                             <string>t</string>
                             <string>validation_errors</string>
-                            <string>form</string>
                             <string>field_errors</string>
                             <string>redirect_url</string>
                           </tuple>
diff --git a/product/ERP5/bootstrap/erp5_core/bt/revision b/product/ERP5/bootstrap/erp5_core/bt/revision
index 748e6f1af544d497e99e1f5c583027349aa4a4c3..a869e998c0e3bac924179254460c4911d81e84a6 100644
--- a/product/ERP5/bootstrap/erp5_core/bt/revision
+++ b/product/ERP5/bootstrap/erp5_core/bt/revision
@@ -1 +1 @@
-637
\ No newline at end of file
+638
\ No newline at end of file