Commit 8b88d0a4 authored by Łukasz Nowak's avatar Łukasz Nowak

Avoid calling checkConsistency constraint providers.

They use the same method name to do another task: check consistency on passed
object. Thus it is impossible to check consistency on them.
parent f62de40f
...@@ -1394,6 +1394,10 @@ class Folder(CopyContainer, CMFBTreeFolder, CMFHBTreeFolder, Base, FolderMixIn): ...@@ -1394,6 +1394,10 @@ class Folder(CopyContainer, CMFBTreeFolder, CMFHBTreeFolder, Base, FolderMixIn):
transaction.savepoint(optimistic=True) transaction.savepoint(optimistic=True)
# Then check the consistency on all sub objects # Then check the consistency on all sub objects
for obj in self.contentValues(): for obj in self.contentValues():
if obj.providesIConstraint():
# it is not possible to checkConsistency of Constraint itself, as method
# of this name implement consistency checking on object
continue
if fixit: if fixit:
extra_errors = obj.fixConsistency(filter=filter, **kw) extra_errors = obj.fixConsistency(filter=filter, **kw)
else: else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment