From 5a9ddd60d06fb6de5a7fa30cdb3649df72fea16f Mon Sep 17 00:00:00 2001
From: Alexandre Boeglin <alex@nexedi.com>
Date: Thu, 23 Sep 2004 12:22:20 +0000
Subject: [PATCH] Fix Copy/Paste error in last commit.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1779 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Form/ListBox.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product/ERP5Form/ListBox.py b/product/ERP5Form/ListBox.py
index 54eeefe9ee..ae843600c0 100755
--- a/product/ERP5Form/ListBox.py
+++ b/product/ERP5Form/ListBox.py
@@ -107,7 +107,7 @@ def makeTreeBody(form, root_dict, domain_path, depth, total_depth, unfolded_list
         domain_path = domain_path[1:]
       else:
         domain_path = ()
-    is_empty_level = (root.objectCount() == 0) and (len(report_path) != 0)
+    is_empty_level = (root.objectCount() == 0) and (len(domain_path) != 0)
     if is_empty_level: base_category = domain_path[0]
 
   tree_body = ''
-- 
2.30.9