Page MenuHomePhabricator

Function pages display "object" or "array" instead of the name of the function, hides ZID
Closed, ResolvedPublicBUG REPORT

Description

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

What happens?:

  • It first displays "Is empty (Z813)" as the title, but then replaces it with "object" and then "array"

What should have happened instead?:

  • the label and ZID should be displayed as the title of the page

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc:
Fresh install as of today, or on notwikilambda

Event Timeline

From some quick debugging, this is set by updateEditFunctionPageTitle() being called with 'object' as the title to write via setZObjectValue(), which seems AFAICT to be called by addZFunctionCall() hard-coding the string 'object' into it. This shouldn't be called at all in readOnly mode, so I guess we could trivially just add an escape if that's true, but it's not clear to me what's setting it in the first place.

Change 747458 had a related patch set uploaded (by AdesojiThisDot; author: AdesojiThisDot):

[mediawiki/extensions/WikiLambda@master] Function pages display \"object\" or \"array\" instead of the name of the function, hides ZID

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

Change 747458 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Function pages display \"object\" or \"array\" instead of the name of the function, hides ZID

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