From d03ffa726175de2de1deec9409787d2fbee2c719 Mon Sep 17 00:00:00 2001
From: Romain Courteaud <romain@nexedi.com>
Date: Mon, 13 Nov 2006 11:28:58 +0000
Subject: [PATCH] Don't display useless None in the UI. Fix sort number
 displayed.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11279 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_skins/erp5_xhtml_style/sort_list_dialog.xml        | 4 ++--
 product/ERP5/bootstrap/erp5_xhtml_style/bt/revision           | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/sort_list_dialog.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/sort_list_dialog.xml
index ca0031ed51..91274c0c54 100644
--- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/sort_list_dialog.xml
+++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/sort_list_dialog.xml
@@ -92,10 +92,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.\n
                         columns python:base_form.get_fields_in_group(groups[0])[0].get_value(\'all_columns\');\n
                         global row_index python:0;\n
                         global row_keys python:[\'None\'];\n
-                        all_columns python: [(\'None\',\'None\')] + columns;">\n
+                        all_columns python: [(\'None\',\'\')] + columns;">\n
           <div tal:repeat="item items"\n
               class="field">\n
-            <label>\n
+            <label tal:define="global row_index python:row_index+1">\n
               <tal:block i18n:translate="" i18n:domain="ui">Sort</tal:block>\n
               <tal:block tal:replace="row_index" />\n
             </label>\n
diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
index fb32aea383..8c91667498 100644
--- a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
+++ b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
@@ -1 +1 @@
-296
\ No newline at end of file
+298
\ No newline at end of file
-- 
2.30.9