Last modified: 2008-06-09 23:54:26 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 12311 - Previewing on Special:Undelete displays first line incorrectly if list item
Previewing on Special:Undelete displays first line incorrectly if list item
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
All All
: Normal trivial (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2007-12-15 03:29 UTC by RockMFR
Modified: 2008-06-09 23:54 UTC (History)
0 users

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

patch to SpecialUndelete.php (496 bytes, patch)
2008-06-09 21:41 UTC, RockMFR

Description RockMFR 2007-12-15 03:29:45 UTC
If the first line of a deleted revision uses list wiki markup (i.e., "*blahblahblah"), previewing that revision will display an asterisk followed by whatever else is on that line, rather than displaying it as a list.
Comment 1 RockMFR 2008-06-09 21:41:59 UTC
Created attachment 4969 [details]
patch to SpecialUndelete.php

Looks like the bug was introduced in r19095; addWikiTextTitleTidy uses $linestart as the third parameter, as opposed to addPrimaryWikiText which uses $cache. Simple!
Comment 2 Brion Vibber 2008-06-09 23:54:26 UTC
Thanks for the patch! Applied on r36114

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