Summary: Show on Select fields - All divs's are parsed
                    regardless of which one is selected.
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: critical
          Priority: Normal
         Component: SemanticForms


I'm using SF 1.9.1. I have the following:

{| class="formtable"
! width=25%|Area Grouping:
| {{{field|Area Groups|default=None|show on select=None=>none;North and 
East Hampshire=>ne_hampshire;West Hampshire=>w_hampshire;South East 

<div id="none">
{| class="formtable"
! width=10%|Areas:
| {{{field|Areas|input type=checkboxes|no autocomplete|property=Area|}}}

<div id="ne_hampshire">
{| class="formtable"
! width=10%|Areas:
| {{{field|Areas|input type=checkboxes|no 
autocomplete|property=Area|default=Basingstoke & Deane Borough,Hart 
District,East Hampshire District,Rushmoor District,North and East 
<div id="w_hampshire">
{| class="formtable"
! width=10%|Areas:
| {{{field|Areas|input type=checkboxes|no 
autocomplete|property=Area|default=New Forest District,Test 
Valley,Eastleigh,Winchester City,West Hampshire}}}
<div id="se_hampshire">
{| class="formtable"
! width=10%|Areas:
| {{{field|Areas|input type=checkboxes|no 
autocomplete|property=Area|default=Havant Borough,Gosport Borough, 
Fareham Borough,South East Hampshire}}}

So, for example, if you select "North and East Hampshire", it correctly 
defaults the areas to the ones specified in the ne_hampshire div.

However, it then seems to process the other divs regardless and ends up 
setting the default= areas for w_hampshire, se_hampshire as well.  When 
you save the form you end up with ALL the default= property values in 
all the div's set for the area property, not just the ne_hampshire ones.

This is obviously a major issue and has caused a massive data integrity


Configure bugmail:
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Wikibugs-l mailing list

Reply via email to