BusinessTemplate: Fix a unindex/reindex catalog problem when upgraiding broken objects.
How it happened while upgrading PathTemplateItem: 1. Try to remove the existing broken object and succeed removing 2. However it is a broken object so self.unindexCatalog() is never called and the old catalog is remaining 3. Add new object of PathTemplateItem and try to reindex the object 4. Since old catalog is remaining, the catalog uid and object uid is different so catalogObjectList fails with FATAL error. The test is tests/BusinessTemplate.py#test_UpgradeBrokenObject.
Showing
Please register or sign in to comment