https://bugzilla.wikimedia.org/show_bug.cgi?id=24827

           Summary: Mandatory fields busted if any input type=checkboxes
                    field is set to mandatory
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: critical
          Priority: Normal
         Component: SemanticForms
        AssignedTo: yaro...@gmail.com
        ReportedBy: mitchell_ne...@hotmail.com
                CC: wikibugs-l@lists.wikimedia.org


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

-- 
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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to