Page MenuHomePhabricator

TimedText pages cannot be edited by those who have WE2017 selected as their editor
Closed, ResolvedPublicBUG REPORT


List of steps to reproduce (step by step, including full links if applicable):

What happens?:
Nothing, WE2017 does not open.

Interestingly, the link:Ø
Does work, but that is not the link in the edit button of the page.

What should have happened instead?:
An editor should have opened (WE2017 or WE2010)

  1. is this new behaviour ?
  2. is this because of the content model ?

Event Timeline

The check that fails is here:

var isViewPage = mw.config.get( 'wgIsArticle' ) && !( 'diff' in uri.query );
var isEditPage = mw.config.get( 'wgAction' ) === 'edit' || mw.config.get( 'wgAction' ) === 'submit';
var pageCanLoadEditor = isViewPage || isEditPage;

Specifically wgIsArticle is false, so this is not considered a "view page".

Given that this is a wikitext content page, that sounds like a bug in TimedText.

Change 787786 had a related patch set uploaded (by Esanders; author: Esanders):

[mediawiki/extensions/TimedMediaHandler@master] TimedTextPage: Call setArticleFlag

The above patch also adds "Permanent link" and "Printable version" to the sidebar, along with anything also that depends on the article flag.

I would have never thought to look for that. Thank you Ed !

Change 787786 merged by jenkins-bot:

[mediawiki/extensions/TimedMediaHandler@master] TimedTextPage: Call setArticleFlag

TheDJ assigned this task to Esanders.