Last modified: 2011-11-10 22:27:48 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T34102, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 32102 - #formlink: Works incorrectly if form name contains a slash.
#formlink: Works incorrectly if form name contains a slash.
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
SemanticForms (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Yaron Koren
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-10-31 23:09 UTC by Van de Bugger
Modified: 2011-11-10 22:27 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Van de Bugger 2011-10-31 23:09:55 UTC
I created a form which name includes a slash, for example, `Region/Attributes'. (I also have form `Region', and some other forms `Region/xxx'). Then I used `#formlink' function to create a link:

{{ #formlink: form=Region/Attributes | link type = text | link text = Edit attributes | target = Country }}

`#formlink' creates a link with target `http://localhost.localdomain/wiki/Special:FormEdit/Region/Attributes/Country'. When I click on the link, page `Country' is opened for editing with `Region' form. That's incorrect, because the specified form is `Region/Attributes', not just `Region'.

Some background. I developed an approach, when a page can be edited either as whole, or each section separately (by clicking `[edit]' links at the top of every section). The approach based on multiple forms and templates (to avoid code duplication). I found it is convenient to move sub-forms to subpages of base form. This is the reason for slash in the form name. Slash can be avoided by using another form name, like "Region (Attributes)", but subpages are convenient, because can be renamed with parent form, listed with SubPageList extension, etc.
Comment 1 Yaron Koren 2011-11-10 22:27:48 UTC
This has now been fixed in the SVN code.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links