Jeroen Hoffman pushed to branch release/3.1 at cms-community / hippo-plugin-taxonomy
Commits: 5fc407a1 by Jeroen Hoffman at 2017-01-24T15:00:51+01:00 HIPPLUG-1429 [back port to 11.1] skip WARNs for hippotaxonomy:categoryinfos (cherry picked from commit 0e7180cc133120bf7f29d5bac0b467154567ee32) - - - - - 1 changed file: - hst/src/main/java/org/onehippo/taxonomy/impl/CategoryImpl.java Changes: ===================================== hst/src/main/java/org/onehippo/taxonomy/impl/CategoryImpl.java ===================================== --- a/hst/src/main/java/org/onehippo/taxonomy/impl/CategoryImpl.java +++ b/hst/src/main/java/org/onehippo/taxonomy/impl/CategoryImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2009-2015 Hippo B.V. (http://www.onehippo.com) + * Copyright 2009-2017 Hippo B.V. (http://www.onehippo.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -80,7 +80,7 @@ public class CategoryImpl extends AbstractJCRService implements Category { } } - // populate childs: + // populate children for (Node childItem : new NodeIterable(item.getNodes())) { if (childItem.isNodeType(NODETYPE_HIPPOTAXONOMY_CATEGORY)) { try { @@ -89,10 +89,9 @@ public class CategoryImpl extends AbstractJCRService implements Category { } catch (ServiceException e) { log.warn("Skipping category because '{}', {}", e.getMessage(), e); } - } else { + } else if (!childItem.isNodeType(HIPPOTAXONOMY_CATEGORYINFOS)) { log.warn("Skipping child nodes that are not of type '{}'. Primary node type is '{}'.", NODETYPE_HIPPOTAXONOMY_CATEGORY, childItem.getPrimaryNodeType().getName()); - } } } catch (RepositoryException e) { View it on GitLab: https://code.onehippo.org/cms-community/hippo-plugin-taxonomy/commit/5fc407a10d52618aedd2dd9ada5b24fb9fb5d11c
_______________________________________________ Hippocms-svn mailing list Hippocms-svn@lists.onehippo.org https://lists.onehippo.org/mailman/listinfo/hippocms-svn