From 2bc21e49cc0cdf922f3d56a7202e7d2a5092d14f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Sun, 17 Sep 2006 22:06:56 +0000 Subject: [PATCH] don't fail if the section doesn't have a group. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10064 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../accounting_workflow/scripts/validateTransactionLines.xml | 4 ++-- bt5/erp5_accounting/bt/revision | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/validateTransactionLines.xml b/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/validateTransactionLines.xml index bddd13a357..53f412f9e8 100644 --- a/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/validateTransactionLines.xml +++ b/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/validateTransactionLines.xml @@ -92,9 +92,9 @@ destination_section = transaction.getDestinationSectionValue(\n # do we want to check validity for destination as well?\n check_for_destination = 0\n if source_section is not None and destination_section is not None:\n - source_section_group = source_section.getGroup().lstrip(\'group/\').split(\'/\')\n + source_section_group = source_section.getGroup(\'\').lstrip(\'group/\').split(\'/\')\n destination_section_group = destination_section\\\n - .getGroup().lstrip(\'group/\').split(\'/\')\n + .getGroup(\'\').lstrip(\'group/\').split(\'/\')\n if destination_section_group and source_section_group and \\\n destination_section_group[0] == source_section_group[0]:\n check_for_destination = 1\n diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision index abc4eff6ac..801f180102 100644 --- a/bt5/erp5_accounting/bt/revision +++ b/bt5/erp5_accounting/bt/revision @@ -1 +1 @@ -46 \ No newline at end of file +47 \ No newline at end of file -- 2.30.9