From e5121babc4d279639424b100730d26e32c152c69 Mon Sep 17 00:00:00 2001 From: Fabien Morin <fabien@nexedi.com> Date: Wed, 22 Jul 2009 15:43:45 +0000 Subject: [PATCH] use the same properties in the error message than in the query (and start_date don't exist on request_eform) git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28148 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../scripts/modifyPhysicalPersonFromP2.xml | 8 ++++---- bt5/erp5_registry_ohada/bt/revision | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bt5/erp5_registry_ohada/WorkflowTemplateItem/portal_workflow/ohada_form_validation_interaction_workflow/scripts/modifyPhysicalPersonFromP2.xml b/bt5/erp5_registry_ohada/WorkflowTemplateItem/portal_workflow/ohada_form_validation_interaction_workflow/scripts/modifyPhysicalPersonFromP2.xml index 01a1ef6b30..1df3b6ea08 100644 --- a/bt5/erp5_registry_ohada/WorkflowTemplateItem/portal_workflow/ohada_form_validation_interaction_workflow/scripts/modifyPhysicalPersonFromP2.xml +++ b/bt5/erp5_registry_ohada/WorkflowTemplateItem/portal_workflow/ohada_form_validation_interaction_workflow/scripts/modifyPhysicalPersonFromP2.xml @@ -114,14 +114,14 @@ if len(person_list) >1 :\n raise ValidationFailed, "Error : There is more than one person with the "\\\n " title \'%s\', birth date \'%s\' and birthplace \'%s\'" % (\n request_eform.getTitle(),\n - request_eform.getStartDate(),\n - request_eform.getDefaultBirthplaceAddressCity())\n + request_eform.getOwnerBirthday(),\n + request_eform.getOwnerBirthplace())\n elif len(person_list) == 0:\n raise ValidationFailed, "Error : There is nobody with the "\\\n " title \'%s\', birth date \'%s\' and birthplace \'%s\'" % (\n request_eform.getTitle(),\n - request_eform.getStartDate(),\n - request_eform.getDefaultBirthplaceAddressCity())\n + request_eform.getOwnerBirthday(),\n + request_eform.getOwnerBirthplace())\n \n else:\n # Modify person based on properties filled in P2\n diff --git a/bt5/erp5_registry_ohada/bt/revision b/bt5/erp5_registry_ohada/bt/revision index 209fc0eb49..0dac149173 100644 --- a/bt5/erp5_registry_ohada/bt/revision +++ b/bt5/erp5_registry_ohada/bt/revision @@ -1 +1 @@ -923 +924 -- 2.30.9