Last modified: 2010-08-23 22:48:43 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 T26827, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 24827 - Mandatory fields busted if any input type=checkboxes field is set to mandatory
Mandatory fields busted if any input type=checkboxes field is set to mandatory
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
SemanticForms (Other open bugs)
unspecified
All All
: Normal critical (vote)
: ---
Assigned To: Yaron Koren
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-08-17 16:54 UTC by Neill Mitchell
Modified: 2010-08-23 22:48 UTC (History)
1 user (show)

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


Attachments

Description Neill Mitchell 2010-08-17 16:54:38 UTC
I've found another case that breaks the mandatory fields functionality. If you have input type=checkboxes and the field set mandatory then the form can be saved if any of the mandatory fields are left blank.

This can be seen at:
http://scratchpad.referata.com/wiki/Mandatory_Field_Test

The Name, Title and Mandatory Test Property are set to be mandatory. However, when you leave one or indeed all of them blank, the form can still be saved. If you remove the "mandatory" from

! Mandatory Test Property:
| {{{field|Mandatory Test Property|input type=checkboxes|mandatory}}}

Then the form cannot be saved if Name or Title are left blank.

So to sum up so far. Mandatory field functionality get broken if you specify mandatory on:

1. Hidden fields (not especially a problem).
2. Show on Select fields
3. Input type=checkboxes fields
Comment 1 Neill Mitchell 2010-08-20 14:46:41 UTC
Okay, found another instance that will break all mandatory fields. If 
you set any multiple values field of type string to mandatory then all 
mandatory fields stop working. I guess it's because multiple value 
string fields default to checkboxes.
Comment 2 Yaron Koren 2010-08-23 22:48:43 UTC
I believe this is now fixed in version 2.0 - setting to "fixed".

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


Navigation
Links