multiple property of field action does not work in XML pattern
abarton - May 13, 2009 - 15:26
| Project: | Patterns |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
The specified value for the 'multiple' property of a 'field' action is not honored. This is a persistent bug regardless of node type or field type. Assuming the referenced type exists this will not set the field to allow unlimited values as it should:
<field>
<type>profile</type>
<name>favorite_urls</name>
<label>Favorite URLs</label>
<option>link</option>
<widget>link</widget>
<weight>42</weight>
<multiple>1</multiple> <!-- NOT WORKING //-->
<title>optional</title>
</field> 
#1
Recently added experimental code introduced some bugs which are causing this issue. We will try to fix it as soon as possible. Thanks for reporting the bug.
#2
This is also not working in YAML patterns
#3
This issue should be fixed now for both XML and YAML. It was caused by confusion of the #option labels and values for the mutiple select value. The label "1", which is actually key 0, was being used instead of the key "1", which is label "unlimited".
The code now looks for keys first over labels.
In this case, using unlimited would also have worked.
#4
#5
Automatically closed -- issue fixed for 2 weeks with no activity.