Index: src/main/java/com/xpn/xwiki/plugin/feed/FeedPlugin.java =================================================================== --- src/main/java/com/xpn/xwiki/plugin/feed/FeedPlugin.java (revision 5363) +++ src/main/java/com/xpn/xwiki/plugin/feed/FeedPlugin.java (working copy) @@ -480,6 +480,12 @@ needsUpdate = true; doc.setContent("#includeForm(\"XWiki.ClassSheet\")"); } + + String parent = doc.getParent(); + if ((parent == null) || (parent.trim().equals(""))) { + needsUpdate = true; + doc.setParent("XWiki.XWikiClasses"); + } if (needsUpdate) context.getWiki().saveDocument(doc, context); @@ -521,6 +527,12 @@ needsUpdate = true; doc.setContent("#includeForm(\"XWiki.ClassSheet\")"); } + + String parent = doc.getParent(); + if ((parent == null) || (parent.trim().equals(""))) { + needsUpdate = true; + doc.setParent("XWiki.XWikiClasses"); + } if (needsUpdate) context.getWiki().saveDocument(doc, context);