Changes for page Custom Mapping

Last modified by Alex Cotiugă on 2022/10/12

<
From version < 3.1 >
edited by Caleb James DeLisle
on 2012/02/13
To version < 4.1 >
edited by Caleb James DeLisle
on 2012/02/13
>
Change comment: fixed script again which was definitely incorrect

Summary

Details

Page properties
Content
... ... @@ -39,7 +39,7 @@
39 39  classDoc = xwiki.getDocument(classDocumentName).getDocument();
40 40  classDoc.getxWikiClass().setCustomMapping("internal");
41 41  xcontext.getContext().getWiki().saveDocument(classDoc, xcontext.getContext());
42 -classDoc = xwiki.getDocument(classDocumentName);
42 +classDoc = xwiki.getDocument(classDocumentName).getDocument();
43 43  if ("internal".equals(classDoc.getxWikiClass().getCustomMapping())) {
44 44   println("Success.");
45 45  } else {

Get Connected