Page MenuHomePhabricator

template to generate an autoedit button works on pages, but not on forms
Open, Needs TriagePublic

Description

I am trying to use a #autoedit on a form (rather than on a page) to edit a page that is not the one currently being edited by the form. (idea is to edit a page that refers in a template call to the one I am currently editing - and yes, that may be a sign of less-than-optimal data structure).

I set up a template to create the autoedit form. The template works when called from a page, but when called from a form it gives the following error:

"Modifying [[]] failed. No form specified. Will try to find the default form for the target page.

MediaWiki 1.32.1
PHP 7.2.11 (cgi-fcgi)
MySQL 5.7.25-log
Page Forms 4.5

No target page specified."

This may be related to T225473.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJun 11 2019, 2:44 AM
Tenbergen updated the task description. (Show Details)Jun 11 2019, 2:46 AM

Hey Ahmad, I am a bit puzzled by two things... why did you move this to Not PF without explanations? And, how did you manage to do it with a timestamp that predates me posting this bug?

@Tenbergen: There is no timestamp predating your posting. June isn't July. :)

@Aklapper - oi, you are right of course, my bad. At least that mystery is solved.
I still don't understand why this was categorized as not a PF issue, though.

Aklapper added a subscriber: ahmad.Tue, Sep 17, 9:59 AM

@ahmad: Could you answer, please? :)

@Aklapper - oi, you are right of course, my bad. At least that mystery is solved.
I still don't understand why this was categorized as not a PF issue, though.

That must have been a mistake. I didn't mean to.

@ahmad: Then please revert?

ahmad added a comment.Thu, Sep 19, 6:10 PM

@ahmad: Then please revert?

I don't know what "Not PF" is, nor how to revert this status. Please direct me, or if you can do it and do not mind to, please do it; and please give me a pointer to read on "No PF".

@ahmad: Ah sorry, let me do that. For future reference, you can either drag cards on the workboard at https://phabricator.wikimedia.org/project/board/272/ or use the dropdown above the comment field via Add Action...Move on Workboard.