https://bugzilla.wikimedia.org/show_bug.cgi?id=33376
Web browser: ---
Bug #: 33376
Summary: {{#forminput:}} not always creating a form element
Product: MediaWiki extensions
Version: any
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: SemanticForms
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
Including {{#forminput:}} in a form definition itself for two different forms
results in one input field not being surrounded by <form></form> elements.
In this specific case, the two statements and their respective output are:
{{#forminput:form=Organisation|button text=add it|query
string=namespace=Organisation|autocomplete on namespace=Organisation|popup}} }}
resulting in:
<p>
<input id="input_1" class="autocompleteInput createboxInput formInput
ui-autocomplete-input" type="text" autocompletesettings="input_1" value=""
size="25" name="page_name" autocomplete="off" role="textbox"
aria-autocomplete="list" aria-haspopup="true">
<input type="hidden" name="form" value="Organisation">
<input type="hidden" value="Organisation" name="namespace">
<input type="submit" value="add it">
</p>
<p> </p>
<div id="div_1" class="page_name_auto_complete"> </div>
<p></p>
and on the other hand:
{{#forminput:form=Location|button text=add it|autocomplete on
category=Location|popup}} }}
resulting in:
<form class="popupforminput" method="get" action="/wiki/Special:FormStart"
name="createbox">
<p>
<input id="input_2" class="autocompleteInput createboxInput formInput
ui-autocomplete-input" type="text" autocompletesettings="input_2" value=""
size="25" name="page_name" autocomplete="off" role="textbox"
aria-autocomplete="list" aria-haspopup="true">
<input type="hidden" name="form" value="Location">
<input type="submit" value="add it">
</p>
<p> </p>
<div id="div_2" class="page_name_auto_complete"> </div>
<p></p>
</form>
Since no form elements surround the first (organisation) field, the form this
code resides in will be submitted.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l