Last modified: 2007-11-29 17:18:19 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 9849 - SelectCategory: previewing clears the categories
SelectCategory: previewing clears the categories
Product: MediaWiki extensions
Classification: Unclassified
General/Unknown (Other open bugs)
PC Linux
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2007-05-08 21:13 UTC by Samuel Gélineau
Modified: 2007-11-29 17:18 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---

preview_bug.patch (788 bytes, patch)
2007-05-08 21:18 UTC, Samuel Gélineau

Description Samuel Gélineau 2007-05-08 21:13:17 UTC
When using the SelectCategory extension, clicking the Preview button loads the
preview page, but on this page the SelectCategory select box contains no
selections. As a result, if the user does not notice this and does not reselect
the correct categories, subsequently clicking the Save button will cause the
categories to be lost.
Comment 1 Samuel Gélineau 2007-05-08 21:18:29 UTC
Created attachment 3601 [details]

If $_POST["SelectCategoryList"] is defined, this means the categories were
already extracted from the page text in a previous PHP pass. Thus, the
categories listed in this variable should be used. Failing to do so cause the
reextraction to fail, since the first extraction striped the categories from
the page text.
Comment 2 Shannon Lowder 2007-11-29 14:46:46 UTC
Although it was commented that the .5 version of selectCategories resolves this issue, the problem remains.  I have also compared the function suggested by the patch versus the same function definition found in .5, they are a match.  I am still receiving this error.  Were there any other changes required to get version .5 to really resolve this issue?
Comment 3 Samuel Gélineau 2007-11-29 17:18:19 UTC
The stock .5 version works fine on my machine...

Note You need to log in before you can comment on or make changes to this bug.