From 4e2a363937d432ac612754700c510c240ce89509 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com>
Date: Tue, 24 Jun 2008 14:58:50 +0000
Subject: [PATCH] Use uid for catalog lookups when available instead of
 relative url.

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

diff --git a/bt5/erp5_banking_check/SkinTemplateItem/portal_skins/erp5_banking_check_operation/Base_checkOrCreateCheck.xml b/bt5/erp5_banking_check/SkinTemplateItem/portal_skins/erp5_banking_check_operation/Base_checkOrCreateCheck.xml
index 300a5dde5a..c8678153ac 100644
--- a/bt5/erp5_banking_check/SkinTemplateItem/portal_skins/erp5_banking_check_operation/Base_checkOrCreateCheck.xml
+++ b/bt5/erp5_banking_check/SkinTemplateItem/portal_skins/erp5_banking_check_operation/Base_checkOrCreateCheck.xml
@@ -131,7 +131,7 @@ for check_reference in reference_list:\n
     raise ValidationFailed, (msg,)\n
   result = context.portal_catalog(portal_type = \'Check\', reference = check_reference, \n
                                   destination_payment_uid = bank_account.getUid(),\n
-                                  default_resource_relative_url = resource,\n
+                                  default_resource_uid = resource_value.uid,\n
                                   simulation_state=\'!=deleted\')\n
   result_len = len(result)\n
   if result_len == 0:\n
diff --git a/bt5/erp5_banking_check/bt/revision b/bt5/erp5_banking_check/bt/revision
index 6b3ed8d68b..ffe78b01d3 100644
--- a/bt5/erp5_banking_check/bt/revision
+++ b/bt5/erp5_banking_check/bt/revision
@@ -1 +1 @@
-400
\ No newline at end of file
+401
\ No newline at end of file
-- 
2.30.9