Last modified: 2010-05-15 14:36:12 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 776 - Old title as default for new title when moving pages
Old title as default for new title when moving pages
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikipedia.org/w/wiki.phtml?...
: patch
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-10-24 22:33 UTC by Guanaco
Modified: 2010-05-15 14:36 UTC (History)
1 user (show)

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


Attachments
Patch for SpecialMovepage.php to make the new title default to the old title (624 bytes, patch)
2004-10-24 22:34 UTC, Guanaco
Details
Fixed patch (734 bytes, patch)
2004-10-26 02:56 UTC, Guanaco
Details

Description Guanaco 2004-10-24 22:33:13 UTC
It would be useful for the old title of a page to appear in the "To new title:"
box by default. This would save time when moving multiple pages across
namespaces or when moving a page to a similar title.

I've made and tested a patch, and it appears to work as intended.
Comment 1 Guanaco 2004-10-24 22:34:33 UTC
Created attachment 110 [details]
Patch for SpecialMovepage.php to make the new title default to the old title
Comment 2 Brion Vibber 2004-10-26 02:06:22 UTC
Slight problem with the patch: normally if you put in a title that is rejected (because it is invalid, or 
the page exists, or whathaveyou), the form comes back with an error message and the box is still 
filled with the text you gave. Thus, if you mistyped you can fix it; or you can go remove the target 
and then come back and hit submit. This patch overwrites that with the source title every time, so 
you should probably check that it's not actually set first.
Comment 3 Guanaco 2004-10-26 02:56:12 UTC
Created attachment 113 [details]
Fixed patch
Comment 4 Brion Vibber 2004-10-26 03:54:54 UTC
I've applied this to 1.4 CVS with a slight modification: empty() will return true for the string "0" so I changed 
it to == "" instead, so folks can rename pages to [[0]].

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


Navigation
Links