Last modified: 2010-05-15 14:36:12 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T2776, the corresponding Phabricator task for complete and up-to-date bug report information.
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