Last modified: 2011-11-22 07:29:50 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 T34421, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 32421 - Show on select radiobutton field fails to function when the radio button is hidden
Show on select radiobutton field fails to function when the radio button is h...
Status: RESOLVED INVALID
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-11-15 01:35 UTC by badon
Modified: 2011-11-22 07:29 UTC (History)
1 user (show)

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


Attachments

Description badon 2011-11-15 01:35:05 UTC
One bug leads to a workaround, which leads to another bug... It probably makes less sense out of context, but individual bug reports were requested. This bug occurs when trying to workaround this bug:

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

Here's fields and bug comments from my form:

<!-- uploadoredit radio button field parameters "mandatory" with "default=edit" fails to prevent "None" radiobutton from appearing on edit pages. No workaround available other than hiding the entire field. --><nowiki />
<!-- uploadoredit radio button field show on select fails to function when field is hidden, so must use MediaWiki:Common.css to hide uploadoredit CSS class. --><nowiki />

<div class="hidden"> <!-- makes it so hidden uploadoredit fields below don't take up any space. Not necessary anymore to hide them with the uploadoredit CSS class, but whatever. --><nowiki />
{{{field | uploadoredit | class=uploadoredit | input type=radiobutton | values=upload, edit | default=edit | show on select=upload=>uploadfield;}}} <!-- Must duplicate this line to make buggy show on select hiding work. Workaround discovered by accident when accidentally pasting form code twice in form edit page. I don't know why it works. --><nowiki />
{{{field | uploadoredit | class=uploadoredit | input type=radiobutton | values=upload, edit | default=edit | show on select=upload=>uploadfield;}}} <!-- Must duplicate this line to make buggy show on select hiding work. Workaround discovered by accident when accidentally pasting form code twice in form edit page. I don't know why it works. --><nowiki />
</div>
Comment 1 Yaron Koren 2011-11-15 21:18:28 UTC
You can't have the same template field more than once in a form definition, so I'm not surprised that something would break. I'm setting this to "invalid".
Comment 2 badon 2011-11-22 07:29:50 UTC
Looks like there was actually a bug behind this that wasn't immediately apparent as to the cause while the radio button field was hidden. I spent the day to pin it down in a demo for a new bug:

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

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


Navigation
Links