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>
Comments
Comment #1
vaish commentedRecently 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.
Comment #2
Anonymous (not verified) commentedThis is also not working in YAML patterns
Comment #3
sarvab commentedThis 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.
Comment #4
vaish commented