Description
When I save or preview an edited page with Opera 8.5 and don't select a category from the pull-down menu, then "No addition" is append to the page (see end of this bug report for an example).
Steps to reproduce
- Install Opera 8.5 (I use the Linux version on Debian unstable)
- Edit a page
- Save the page (or click on "Preview")
Example
Look at the very end of this bug report and you can count the number of previews it took me to perfect it
Details
MoinMoin Version |
1.3.5 |
OS and Version |
|
Python Version |
|
Server Setup |
|
Server Details |
|
Workaround
The wiki generates the following HTML-code for the list:
<select name="category"> <option value><No addition></option> <option value="CategoryBounty">CategoryBounty</option> ... other categories ... </select>
The problem seems to be, that Opera tries to be smart and sends the content of the <option>-tag as the value, if the value-parameter itself is empty. I fixed this in my local wiki installation by changing line 556 in file wikiaction.py to:
if category and category != _('<No addition>', formatted=False):
I ripped the "_('<No addition>', formatted=False)" part from line 377 in file PageEditor.py because this seems to be the text, that is inserted into the list by the editor. This works with an English installation and if I understand the code correctly, it should work with other languages as well.
Discussion
Plan
- Priority:
Assigned to: ThomasWaldmann
- Status: fixed in moin-1.5 patch-286