Edgewall Software
Modify

Ticket #2300 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

wiki.page_name is unset in HDF when generating page previews

Reported by: mcivor@… Owned by: cmlenz
Priority: normal Milestone: 0.9.1
Component: wiki system Version: 0.9b2
Severity: major Keywords: wiki macro
Cc:
Release Notes:
API Changes:

Description

When previewing page edits, macros which rely on wiki.page_name are either broken or default to StartPage, depending on the implementation. This occurs because WikiModule.process_request() invokes WikiModule._render_editor() before setting wiki.page_name and wiki.current_href.

The fix is simple: move these two assignments so they occur before the big if/elif loop that dispatches on the method and action in process_request().

Attachments

Change History

comment:1 Changed 6 years ago by anonymous

  • Milestone set to 0.9.1

comment:2 Changed 6 years ago by cmlenz

  • Owner changed from jonas to cmlenz
  • Status changed from new to assigned

comment:3 Changed 6 years ago by cmlenz

  • Resolution set to fixed
  • Status changed from assigned to closed

Fixed in [2576] and [2577].

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from cmlenz. Next status will be 'closed'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.