matej_suchanek added a comment.

I have just done a quick investigation: after submitting the form according to the steps, the HTML source contains <form action=""> instead of <form action=""> (which is there when you open an empty for). If I fix the source code and try to submit, it behaves correctly.

The action attribute comes from HTMLForm::getAction() which calls $this->getTitle()->getLocalURL(). So there is some problem with the title.

A quick solution could be like:

// SpecialNewEntity::createForm
/**
 * @return HTMLForm
 */
private function createForm() {
  return HTMLForm::factory( 'ooui', $this->getFormFields(), $this->getContext() )
    ->setTitle( SpecialPage::getTitleFor( $this->getName() ) )
  // ...

However, this fixes the reported problem but not the actual problem.




To: matej_suchanek
Cc: matej_suchanek, Liuxinyu970226, Lydia_Pintscher, StudiesWorld, thiemowmde, liangent, Sjoerddebruin, Aklapper, Stryn, D3r1ck01, Izno, Wikidata-bugs, aude, Mbch331, Jay8g
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to