Page MenuHomePhabricator

template to generate an autoedit button works on pages, but not on forms
Closed, DeclinedPublic

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

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 - 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?

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.

Yaron_Koren added a subscriber: Yaron_Koren.

As I wrote in T225473, I don't think #autoedit calls should be placed in forms, so the fact that it doesn't work is not a big deal - I'm marking this as "Declined".