Last modified: 2010-01-08 00:06:18 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 T24013, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 22013 - Radiobutton, Mandatory, No Default fails validation
Radiobutton, Mandatory, No Default fails validation
Status: RESOLVED DUPLICATE of bug 22003
Product: MediaWiki extensions
Classification: Unclassified
SemanticForms (Other open bugs)
unspecified
All All
: Normal major (vote)
: ---
Assigned To: Yaron Koren
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-01-04 17:15 UTC by Jack D. Pond
Modified: 2010-01-08 00:06 UTC (History)
1 user (show)

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


Attachments
Use validate_mandatory_checkboxes instead of validate_mandatory_radiobutton (69.17 KB, patch)
2010-01-04 17:15 UTC, Jack D. Pond
Details
Patch adds ID to radiobutton field for use with validation (33.35 KB, patch)
2010-01-07 23:52 UTC, Jack D. Pond
Details
Use validate_mandatory_checkboxes instead of validate_mandatory_radiobutton (33.35 KB, patch)
2010-01-07 23:54 UTC, Jack D. Pond
Details
Use validate_mandatory_checkboxes instead of validate_mandatory_radiobutton (790 bytes, patch)
2010-01-08 00:00 UTC, Jack D. Pond
Details

Description Jack D. Pond 2010-01-04 17:15:00 UTC
Created attachment 6924 [details]
Use validate_mandatory_checkboxes instead of validate_mandatory_radiobutton

If you have a form field that is a radiobutton, mandatory, without a default, uses validate_mandatory_radiobutton, which looks to see if the "None" button is checked.  The form printer defaults the "None" button to the first button, when mandatory is specified, but, there is no "None" button.  Therefore if the first radiobutton is checked in this scenario it will always fail validation.
Comment 1 Jack D. Pond 2010-01-07 23:52:32 UTC
Created attachment 6933 [details]
Patch adds ID to radiobutton field for use with validation
Comment 2 Jack D. Pond 2010-01-07 23:54:08 UTC
Created attachment 6934 [details]
Use validate_mandatory_checkboxes instead of validate_mandatory_radiobutton
Comment 3 Jack D. Pond 2010-01-08 00:00:36 UTC
Created attachment 6935 [details]
Use validate_mandatory_checkboxes instead of validate_mandatory_radiobutton
Comment 4 Yaron Koren 2010-01-08 00:06:18 UTC

*** This bug has been marked as a duplicate of bug 22003 ***

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


Navigation
Links