Opened 19 years ago
Closed 19 years ago
#3309 closed defect (fixed)
PageOutline macro shows outline of latest when viewing old revisions
| Reported by: | anonymous | Owned by: | Christian Boos |
|---|---|---|---|
| Priority: | high | Milestone: | 0.11 |
| Component: | wiki system | Version: | 0.9.5 |
| Severity: | normal | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
When you have a PageOutline macro embedded in a wiki page which undergoes a number of revisions, if you look back at a previous revision, the PageOutline macro still generates the outline for the latest version of the file.
Attachments (0)
Change History (3)
comment:1 by , 19 years ago
comment:2 by , 19 years ago
| Component: | general → wiki |
|---|---|
| Milestone: | → 0.11 |
| Owner: | changed from to |
| Priority: | normal → high |
Related to #3089 and will be fixed the same way in milestone:0.11:
the render_macro() will take the formattter as its first parameter
in replacement of the req (req itself can still be obtained from
formatter.req), and the text being wiki formatted will be obtain from
formatter.text.
Not only will this solve this issue, but this will make possible to use the PageOutline macro on other objects than Wiki pages (like in ticket descriptions).
comment:3 by , 19 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
This works as expected now (r4451).



This should probably also be fixed in the TOC macro on trac-hacks.