- Steps to Reproduce: 1.32.0-wmf.13 (rMW360f7b546cb9)
- Go to https://meta.wikimedia.org/wiki/Special:Log/block
- Change "Log type drop down menu" from "Block log" to anything (e.g. "All public logs")
- Click the "Show" button.
- Actual Results: Does not work for change a log type drop down when the log type specified by URL / argument @ 1.32.0-wmf.13 (rMW360f7b546cb9)
- Expected Results: Must be changed to targeted log type. https://en.wikipedia.org/wiki/Special:Log/block (1.32.0-wmf.12 (eb2e8d4) )
Description
Details
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | Release | zeljkofilipin | T191059 1.32.0-wmf.13 deployment blockers | ||
Resolved | None | T193966 Form field should override subpage | |||
Resolved | Jayprakash12345 | T200136 Does not work for change a log type drop down when the log type specified by URL / argument @ 1.32.0-wmf.13 (360f7b5) |
Event Timeline
Confirmed. Regression. This is separate from
T199856, which is also a regression from the SpecialLog refactor from this week.
This should be fixed by just replacing like
$htmlForm = new HTMLForm( $formDescriptor, $this->getContext() );
to
$context = new DerivativeContext( $this->getContext() ); $context->setTitle( $this->getPageTitle() ); // Remove subpage $htmlForm = new HTMLForm( $formDescriptor, $context );
in mediawiki/core/includes/logging/LogEventsList.php
DerivativeContext is important for form submission to override the title.
Getting Fatal Error undefined method LogEventsList::getPageTitle() because getPageTitle() is part of SpecialPage class.
Change 447359 had a related patch set uploaded (by Prtksxna; owner: Prtksxna):
[mediawiki/core@master] LogEventsList: Use DerivativeContext
Yep, LogEventsList gets this using SpecialPage::getTitleFor( 'Log' ) - https://github.com/wikimedia/mediawiki/blob/master/includes/logging/LogEventsList.php#L113
Changing priority to UBN since it's blocking the train.
Friendly reminder: the train is blocked because of this task. (It's not the only blocker at the time I write this.) Any updates?
Someone needs to merge the https://gerrit.wikimedia.org/r/447359. Everything is ready.
Thanks for the patch @Jayprakash12345, I just +2'd it.
I will not be around to SWAT it this time, so someone else will have to do it.
Change 447359 merged by jenkins-bot:
[mediawiki/core@master] LogEventsList: Use DerivativeContext
Change 447466 had a related patch set uploaded (by Greg Grossmeier; owner: Prtksxna):
[mediawiki/core@wmf/1.32.0-wmf.13] LogEventsList: Use DerivativeContext
Change 447466 abandoned by Zfilipin:
LogEventsList: Use DerivativeContext
Reason:
No wikis at .13 any more