BusinessTemplate: Fix a unindex/reindex catalog problem when upgraiding broken objects.
How it happened while upgrading PathTemplateItem: 1. Tries to remove the existing broken object and succeeds 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 tries 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