Tobias Jeger pushed to branch feature/visual-editing-psp1 at cms-community / hippo-addon-channel-manager
Commits: 7adac8e8 by Tobias Jeger at 2016-11-04T15:53:36+01:00 CHANNELMGR-966 Fix problem with max nesting check. - - - - - 1 changed file: - content-service/src/main/java/org/onehippo/cms/channelmanager/content/documenttype/DocumentTypesServiceImpl.java Changes: ===================================== content-service/src/main/java/org/onehippo/cms/channelmanager/content/documenttype/DocumentTypesServiceImpl.java ===================================== --- a/content-service/src/main/java/org/onehippo/cms/channelmanager/content/documenttype/DocumentTypesServiceImpl.java +++ b/content-service/src/main/java/org/onehippo/cms/channelmanager/content/documenttype/DocumentTypesServiceImpl.java @@ -87,7 +87,7 @@ class DocumentTypesServiceImpl implements DocumentTypesService { public void populateFieldsForCompoundType(final String id, final List<FieldType> fields, final ContentTypeContext parentContext, final DocumentType docType) { final int level = parentContext.getLevel() + 1; - if (level <= MAX_NESTING_LEVEL) { + if (level > MAX_NESTING_LEVEL) { log.info("Ignoring fields of {}-level-deep nested compound, nesting maximum reached", level); return; } View it on GitLab: https://code.onehippo.org/cms-community/hippo-addon-channel-manager/commit/7adac8e865e5c455ce06b19ee2321e3fcbbe5b61
_______________________________________________ Hippocms-svn mailing list Hippocms-svn@lists.onehippo.org https://lists.onehippo.org/mailman/listinfo/hippocms-svn