diff --git a/bt5/erp5_web_shacache/TestTemplateItem/testShaCache.py b/bt5/erp5_web_shacache/TestTemplateItem/testShaCache.py index 5bc996f35505ac4ea3ec93d3324494cfa04de50e..888633c733e299587d19d397d60d3b817dc3a252 100644 --- a/bt5/erp5_web_shacache/TestTemplateItem/testShaCache.py +++ b/bt5/erp5_web_shacache/TestTemplateItem/testShaCache.py @@ -137,4 +137,15 @@ class TestShaCache(ShaCacheMixin, ERP5TypeTestCase): self.assertEquals('published', document2.getValidationState()) self.assertEquals('archived', document.getValidationState()) + def test_put_file_twice_no_tic(self): + self.postFile() + transaction.commit() + self.postFile() + transaction.commit() + self.tic() + + document_list = self.portal.portal_catalog(reference=self.key) + self.assertEqual(2, len(document_list)) + self.assertEqual(sorted(['archived', 'published']), sorted([ + q.getValidationState() for q in document_list])) diff --git a/bt5/erp5_web_shacache/bt/revision b/bt5/erp5_web_shacache/bt/revision index eebd1d10b6ec9917baf4df7f2e3de79e031a9af7..b2412e34dff05e77952f3f930772631cac5a3be7 100644 --- a/bt5/erp5_web_shacache/bt/revision +++ b/bt5/erp5_web_shacache/bt/revision @@ -1 +1 @@ -61 \ No newline at end of file +62 \ No newline at end of file