Page MenuHomePhabricator

Does not work for change a log type drop down when the log type specified by URL / argument @ 1.32.0-wmf.13 (360f7b5)
Closed, ResolvedPublic

Description

Event Timeline

Confirmed. Regression. This is separate from
T199856, which is also a regression from the SpecialLog refactor from this week.

Krinkle triaged this task as High priority.Jul 21 2018, 8:50 PM

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

https://gerrit.wikimedia.org/r/447359

Getting Fatal Error undefined method LogEventsList::getPageTitle() because getPageTitle() is part of SpecialPage class.

Yep, LogEventsList gets this using SpecialPage::getTitleFor( 'Log' ) - https://github.com/wikimedia/mediawiki/blob/master/includes/logging/LogEventsList.php#L113

zeljkofilipin raised the priority of this task from High to Unbreak Now!.Jul 23 2018, 3:24 PM
zeljkofilipin subscribed.

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?

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

https://gerrit.wikimedia.org/r/447359

Change 447466 had a related patch set uploaded (by Greg Grossmeier; owner: Prtksxna):
[mediawiki/core@wmf/1.32.0-wmf.13] LogEventsList: Use DerivativeContext

https://gerrit.wikimedia.org/r/447466

Change 447466 had a related patch set uploaded (by Greg Grossmeier; owner: Prtksxna):
[mediawiki/core@wmf/1.32.0-wmf.13] LogEventsList: Use DerivativeContext

https://gerrit.wikimedia.org/r/447466

Clarifying question: is this backport sufficient?

Change 447466 abandoned by Zfilipin:
LogEventsList: Use DerivativeContext

Reason:
No wikis at .13 any more

https://gerrit.wikimedia.org/r/447466