[
http://jira.xwiki.org/jira/browse/XWIKI-1899?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sergiu Dumitriu closed XWIKI-1899.
----------------------------------
Fix Version/s: 1.2 RC1
Resolution: Fixed
Assignee: Sergiu Dumitriu
Fixed in rev. 6081
> The #toc macro requires programming rights for numbering sections
> -----------------------------------------------------------------
>
> Key: XWIKI-1899
> URL: http://jira.xwiki.org/jira/browse/XWIKI-1899
> Project: XWiki Platform
> Issue Type: Bug
> Components: Core, Wiki features
> Affects Versions: 1.2 M2
> Reporter: Sergiu Dumitriu
> Assigned To: Sergiu Dumitriu
> Fix For: 1.2 RC1
>
>
> The bad lines are:
> {noformat}
> #set ($context.context.tocNumbered = $numbered)
> #set ($context.context.tocData = $tocData)
> {noformat}
> The first one is not needed at all, since the context is already updated in
> com.xpn.xwiki.api.Document.getTOC(). The second line is needed because the
> XWikiHeading filter that generates headings uses the already generated
> headings instead of recounting the headers. This can be fixed by using
> vcontext instead of xcontext as the place to store tocData.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications