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

  1. Install Opera 8.5 (I use the Linux version on Debian unstable)
  2. Edit a page
  3. 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>&lt;No addition&gt;</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


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/NoAdditionCategoryWithOpera (last edited 2007-10-29 19:06:04 by localhost)