From 41b84fdcb70a73b9fd3cd8d7e7ccedd42dffa42c Mon Sep 17 00:00:00 2001
From: Vincent Pelletier <vincent@nexedi.com>
Date: Thu, 24 Jul 2008 15:56:56 +0000
Subject: [PATCH] Do not print reference in error (it's still in the input area
 right next to error message). This helps reducing long-term Localizer bloat.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22644 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../CheckDelivery_generateCheckDetailInputDialog.xml          | 4 ++--
 bt5/erp5_banking_check/bt/revision                            | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/bt5/erp5_banking_check/SkinTemplateItem/portal_skins/erp5_banking_check_operation/CheckDelivery_generateCheckDetailInputDialog.xml b/bt5/erp5_banking_check/SkinTemplateItem/portal_skins/erp5_banking_check_operation/CheckDelivery_generateCheckDetailInputDialog.xml
index 3ae8ad2597..3ac00e10f7 100644
--- a/bt5/erp5_banking_check/SkinTemplateItem/portal_skins/erp5_banking_check_operation/CheckDelivery_generateCheckDetailInputDialog.xml
+++ b/bt5/erp5_banking_check/SkinTemplateItem/portal_skins/erp5_banking_check_operation/CheckDelivery_generateCheckDetailInputDialog.xml
@@ -173,11 +173,11 @@ else:\n
       try:\n
         reference_range_min = convert_func(reference_range_min)\n
       except ValueError:\n
-        generate_error(line, \'reference_range_min\', \'%s is not a valid %s\' % (reference_range_min, value_denomination))\n
+        generate_error(line, \'reference_range_min\', \'This is not a valid %s\' % (value_denomination, ))\n
       try:\n
         reference_range_max = convert_func(reference_range_max)\n
       except ValueError:\n
-        generate_error(line, \'reference_range_max\', \'%s is not a valid %s\' % (reference_range_max, value_denomination))\n
+        generate_error(line, \'reference_range_max\', \'This is not a valid %s\' % (value_denomination, ))\n
       if check_amount is not None: # In the case of a check book\n
         check_amount_relative_url = \'/\'.join(check_amount.split(\'/\')[1:])\n
         line[\'check_amount_relative_url\'] = check_amount_relative_url\n
diff --git a/bt5/erp5_banking_check/bt/revision b/bt5/erp5_banking_check/bt/revision
index 57db2e9786..5587802b4e 100644
--- a/bt5/erp5_banking_check/bt/revision
+++ b/bt5/erp5_banking_check/bt/revision
@@ -1 +1 @@
-404
\ No newline at end of file
+405
\ No newline at end of file
-- 
2.30.9