From 8b7b17442ae19179b9822548638b87258e45a8fa Mon Sep 17 00:00:00 2001
From: Yoshinori Okuji <yo@nexedi.com>
Date: Mon, 18 Feb 2008 17:02:02 +0000
Subject: [PATCH] I think it is better to add +1 to the last id for a new id.

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

diff --git a/product/ERP5Type/Core/Folder.py b/product/ERP5Type/Core/Folder.py
index 479da78874..ebba78b1e6 100644
--- a/product/ERP5Type/Core/Folder.py
+++ b/product/ERP5Type/Core/Folder.py
@@ -193,7 +193,7 @@ class FolderMixIn(ExtensionClass.Base):
       Id exist, then save the Id.
     """
     try:
-      my_id = int(self.getLastId())
+      my_id = int(self.getLastId()) + 1
     except TypeError:
       my_id = 1
     while self.hasContent(str(my_id)):
-- 
2.30.9